projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- Add missing .cvsignore file
[m6w6/ext-http]
/
http_message_api.c
diff --git
a/http_message_api.c
b/http_message_api.c
index 1cf8661546574505b5d3d1dd255713c585c2b058..86ab323366facbdf8383d2123ca6ce87a3b41be1 100644
(file)
--- a/
http_message_api.c
+++ b/
http_message_api.c
@@
-190,7
+190,7
@@
PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char
zval *len;
char *tmp;
zval *len;
char *tmp;
- spprintf(&tmp, 0, "%lu", decoded_len);
+ spprintf(&tmp, 0, "%lu",
(ulong)
decoded_len);
MAKE_STD_ZVAL(len);
ZVAL_STRING(len, tmp, 0);
MAKE_STD_ZVAL(len);
ZVAL_STRING(len, tmp, 0);
@@
-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 */
} 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);
phpstr_from_string_ex(PHPSTR(msg), body, message + message_length - body);
+ } else {
+ continue_at = body;
}
/* check for following messages */
}
/* check for following messages */