Project

General

Profile

Bug #1754 ยป lighty_304.c.patch

-- yzlai - Anonymous, 2008-08-20 16:14

View differences:

src/response.c 2008-08-20 23:57:28.000000000 +0800
64 64
			0 != strncmp(ds->key->ptr, "X-Sendfile", sizeof("X-Sendfile") - 1)) {
65 65
			if (buffer_is_equal_string(ds->key, CONST_STR_LEN("Date"))) have_date = 1;
66 66
			if (buffer_is_equal_string(ds->key, CONST_STR_LEN("Server"))) have_server = 1;
67
			if (buffer_is_equal_string(ds->key, CONST_STR_LEN("Content-Encoding")) && 304 == con->http_status) continue;
67 68

  
68 69
			BUFFER_APPEND_STRING_CONST(b, "\r\n");
69 70
			buffer_append_string_buffer(b, ds->key);
    (1-1/1)