diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-16 23:34:25 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-16 23:34:25 +0000 |
commit | e9da242ed4654d99a909993e6919c37f7fbca9f3 (patch) | |
tree | 55b8660f9a136bbd7964ce5cb2b7da1bc07be7f1 /ext/zlib/zlib.c | |
parent | b732d8da357bae06ec7dc45de87cbf552d48804a (diff) | |
download | php-git-e9da242ed4654d99a909993e6919c37f7fbca9f3.tar.gz |
Send Content-Length if we're sending just one chunk
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r-- | ext/zlib/zlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 72a4680fe8..b331bad23a 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -14,6 +14,8 @@ +----------------------------------------------------------------------+ | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | | Stefan Röhrich <sr@linux.de> | + | Zeev Suraski <zeev@zend.com> | + | Jade Nicoletti <nicoletti@nns.ch> | +----------------------------------------------------------------------+ */ /* $Id$ */ @@ -1200,13 +1202,11 @@ PHP_FUNCTION(ob_gzhandler) if (return_original) { zval_dtor(return_value); -#if 0 - } else { + } else if (do_start && do_end) { char lenbuf[64]; sprintf(lenbuf,"Content-Length: %d",Z_STRLEN_P(return_value)); sapi_add_header(lenbuf,strlen(lenbuf), 1); -#endif } } else { return_original = 1; |