projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix HttpMessage::setRequestMethod() errenously issuing a warning about an unknown...
[m6w6/ext-http]
/
http_encoding_api.c
diff --git
a/http_encoding_api.c
b/http_encoding_api.c
index 178c9925a34de64e760fa1aec9f715edef816c9c..28f6a9d0daf3d82003baf9997cca67bad159bf51 100644
(file)
--- a/
http_encoding_api.c
+++ b/
http_encoding_api.c
@@
-571,6
+571,12
@@
PHP_HTTP_API STATUS _http_encoding_inflate_stream_finish(http_encoding_stream *s
{
int status;
{
int status;
+ if (!PHPSTR_LEN(s->stream.opaque)) {
+ *decoded = NULL;
+ *decoded_len = 0;
+ return SUCCESS;
+ }
+
*decoded_len = (PHPSTR_LEN(s->stream.opaque) + 1) * HTTP_INFLATE_ROUNDS;
*decoded = emalloc_rel(*decoded_len);
*decoded_len = (PHPSTR_LEN(s->stream.opaque) + 1) * HTTP_INFLATE_ROUNDS;
*decoded = emalloc_rel(*decoded_len);