X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_message_api.c;h=86ab323366facbdf8383d2123ca6ce87a3b41be1;hb=3e696a1c24d6ffc382567876eafa2a5bd9b8afa7;hp=b1194645ecc87caae8d33ab0f68e866e7fb1d0be;hpb=e6d4ae260275041fcc32f06f3487cdef6613c646;p=m6w6%2Fext-http diff --git a/http_message_api.c b/http_message_api.c index b119464..86ab323 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -213,8 +213,10 @@ PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char } else /* no headers that indicate content length */ - if (1) { + if (HTTP_MSG_TYPE(RESPONSE, msg)) { phpstr_from_string_ex(PHPSTR(msg), body, message + message_length - body); + } else { + continue_at = body; } /* check for following messages */