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
This commit is contained in:
parent
ed346f3907
commit
9e6ef84e91
1
NEWS
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
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue