Browse Source

fixed duplicate headers as reported in the blog

- this is a partial revert of [1723]


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1767 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.15
Jan Kneschke 15 years ago
parent
commit
2fcc885f3a
  1. 4
      NEWS
  2. 7
      src/response.c

4
NEWS

@ -3,9 +3,9 @@
NEWS
====
- 1.4.15 - 2007-04-??
- 1.4.15 - 2007-04-13
*
* fixed broken Set-Cookie headers
- 1.4.14 - 2007-04-13

7
src/response.c

@ -66,14 +66,13 @@ int http_response_write_header(server *srv, connection *con) {
BUFFER_APPEND_STRING_CONST(b, "\r\n");
buffer_append_string_buffer(b, ds->key);
BUFFER_APPEND_STRING_CONST(b, ": ");
#if 0
/**
* the value might contain newlines, encode them with at least one white-space
*/
buffer_append_string_encoded(b, CONST_BUF_LEN(ds->value), ENCODING_HTTP_HEADER);
#if 0
log_error_write(srv, __FILE__, __LINE__, "bb",
ds->key, ds->value);
#else
buffer_append_string_buffer(b, ds->value);
#endif
}
}

Loading…
Cancel
Save