projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
7fc758b
)
* fix parsing mulitple response headers with same name
author
Michael Wallner
<mike@php.net>
Fri, 3 Jun 2011 08:58:52 +0000
(08:58 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 3 Jun 2011 08:58:52 +0000
(08:58 +0000)
php_http_header_parser.c
patch
|
blob
|
history
diff --git
a/php_http_header_parser.c
b/php_http_header_parser.c
index 69a419191b2f14558cd77053217ab17d48a0d1ac..e6dca1ee938be43a889413f997cba449fe1293a3 100644
(file)
--- a/
php_http_header_parser.c
+++ b/
php_http_header_parser.c
@@
-177,7
+177,7
@@
PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parse
php_http_pretty_key(parser->_key.str, parser->_key.len, 1, 1);
if (SUCCESS == zend_hash_find(headers, parser->_key.str, parser->_key.len + 1, (void *) &exist)) {
convert_to_array(*exist);
php_http_pretty_key(parser->_key.str, parser->_key.len, 1, 1);
if (SUCCESS == zend_hash_find(headers, parser->_key.str, parser->_key.len + 1, (void *) &exist)) {
convert_to_array(*exist);
- add_next_index_stringl(
&array
, parser->_val.str, parser->_val.len, 0);
+ add_next_index_stringl(
*exist
, parser->_val.str, parser->_val.len, 0);
} else {
add_assoc_stringl_ex(&array, parser->_key.str, parser->_key.len + 1, parser->_val.str, parser->_val.len, 0);
}
} else {
add_assoc_stringl_ex(&array, parser->_key.str, parser->_key.len + 1, parser->_val.str, parser->_val.len, 0);
}