Browse Source

Do not send content-encoding for 304 (#1754), thx yzlai

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2296 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 13 years ago
parent
commit
9e6ef84e91
  1. 1
      NEWS
  2. 1
      src/response.c

1
NEWS

@ -57,6 +57,7 @@ NEWS
* replaced fprintf with log_error_write in fastcgi debug
* fixed mem leak in ssi expression parser (#1753), thx Take5k
* hide some ssl errors per default, enable them with debug.log-ssl-noise (#397)
* do not send content-encoding for 304 (#1754), thx yzlai
- 1.4.19 - 2008-03-10

1
src/response.c

@ -68,6 +68,7 @@ int http_response_write_header(server *srv, connection *con) {
0 != strcasecmp(ds->key->ptr, "X-Sendfile")) {
if (0 == strcasecmp(ds->key->ptr, "Date")) have_date = 1;
if (0 == strcasecmp(ds->key->ptr, "Server")) have_server = 1;
if (0 == strcasecmp(ds->key, "Content-Encoding") && 304 == con->http_status) continue;
buffer_append_string_len(b, CONST_STR_LEN("\r\n"));
buffer_append_string_buffer(b, ds->key);

Loading…
Cancel
Save