projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- gzip responses
[m6w6/ext-http]
/
http_message_api.c
diff --git
a/http_message_api.c
b/http_message_api.c
index 89f67e0bd942bec7ab0375167e4c9b530dd1079f..d0c8f486947c41d6236854d5b5a9b00470b99149 100644
(file)
--- a/
http_message_api.c
+++ b/
http_message_api.c
@@
-157,7
+157,7
@@
PHP_HTTP_API http_message *_http_message_parse_ex(http_message *msg, const char
size_t decoded_len;
/* decode and replace Transfer-Encoding with Content-Length header */
size_t decoded_len;
/* decode and replace Transfer-Encoding with Content-Length header */
- if (continue_at = http_
chunked_decode
(body, message + message_length - body, &decoded, &decoded_len)) {
+ if (continue_at = http_
encoding_dechunk
(body, message + message_length - body, &decoded, &decoded_len)) {
zval *len;
char *tmp;
int tmp_len;
zval *len;
char *tmp;
int tmp_len;
@@
-400,7
+400,6
@@
PHP_HTTP_API void _http_message_tostruct_recursive(http_message *msg, zval *obj
}
add_assoc_zval(&strct, "parentMessage", parent);
http_message_tostruct_recursive(msg->parent, parent);
}
add_assoc_zval(&strct, "parentMessage", parent);
http_message_tostruct_recursive(msg->parent, parent);
- zval_ptr_dtor(&parent);
} else {
add_assoc_null(&strct, "parentMessage");
}
} else {
add_assoc_null(&strct, "parentMessage");
}