projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- made the silently failing message parser raise some errors
[m6w6/ext-http]
/
http_encoding_api.c
diff --git
a/http_encoding_api.c
b/http_encoding_api.c
index 080c16c9ddfb9b3090813efcc4c408e529b511a0..d3529d14c15edb038d1e51eb41c31d99a5d1a895 100644
(file)
--- a/
http_encoding_api.c
+++ b/
http_encoding_api.c
@@
-74,6
+74,8
@@
PHP_HTTP_API const char *_http_encoding_dechunk(const char *encoded, size_t enco
/* reached the end */
if (!chunk_len) {
/* reached the end */
if (!chunk_len) {
+ /* move over '0' chunked encoding terminator */
+ while (*e_ptr == '0') ++e_ptr;
break;
}
break;
}