]>
Commit | Line | Data |
---|---|---|
2d94c4be | 1 | --- php/ext/zlib/zlib.c.orig Wed Jul 2 12:30:43 2003 |
2 | +++ php/ext/zlib/zlib.c Wed Jul 2 13:23:07 2003 | |
3 | @@ -1055,6 +1055,11 @@ | |
4 | php_ob_set_internal_handler(php_gzip_output_handler, (uint)buffer_size, "zlib output compression", 0 TSRMLS_CC); | |
5 | if (ZLIBG(output_handler) && strlen(ZLIBG(output_handler))) { | |
6 | php_start_ob_buffer_named(ZLIBG(output_handler), 0, 1 TSRMLS_CC); | |
7 | + if (sapi_add_header("Content-Encoding: gzip", sizeof("Content-Encoding: gzip") - 1, 1)!=FAILURE) { | |
8 | + if (sapi_add_header("Vary: Accept-Encoding", sizeof("Vary: Accept-Encoding") - 1, 1)==FAILURE) { | |
9 | + SG(sapi_headers).send_default_content_type = 0; | |
10 | + } | |
11 | + } | |
12 | } | |
13 | return SUCCESS; | |
14 | } |