diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-02-07 12:57:28 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-02-07 12:57:28 +0000 |
commit | 9167991f69618a2855be61276922290e49b6e620 (patch) | |
tree | d7b6bab8d75e32a75b047a824e814100ea5ece7b /ext/soap/php_http.c | |
parent | 73605400e842e3c0210c46e4980b9ea748db3886 (diff) | |
download | php-git-9167991f69618a2855be61276922290e49b6e620.tar.gz |
Compression level shouldn't be greatr then 9.
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 9a21371d44..697cf7e285 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -250,6 +250,8 @@ int make_http_soap_request(zval *this_ptr, int level = Z_LVAL_PP(tmp) & 0x0f; int kind = Z_LVAL_PP(tmp) & SOAP_COMPRESSION_DEFLATE; + if (level > 9) {level = 9;} + if ((Z_LVAL_PP(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { smart_str_append_const(&soap_headers_z,"Accept-Encoding: gzip, deflate\r\n"); } |