- made the silently failing message parser raise some errors
[m6w6/ext-http] / http_encoding_api.c
index 080c16c9ddfb9b3090813efcc4c408e529b511a0..d3529d14c15edb038d1e51eb41c31d99a5d1a895 100644 (file)
@@ -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;
                }