X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_encoding_api.c;h=d3529d14c15edb038d1e51eb41c31d99a5d1a895;hp=080c16c9ddfb9b3090813efcc4c408e529b511a0;hb=33b7c5dcd9cffebb8486cb57e04958e34bbfe662;hpb=ca32085deba2d99ea5967e02cb94c0a21894bae1 diff --git a/http_encoding_api.c b/http_encoding_api.c index 080c16c..d3529d1 100644 --- 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) { + /* move over '0' chunked encoding terminator */ + while (*e_ptr == '0') ++e_ptr; break; }