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 (from parent 1:
5b969e9
)
- fix a mistake crept in which prevented from setting custom request content type
author
Michael Wallner
<mike@php.net>
Wed, 22 Feb 2006 17:58:44 +0000
(17:58 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 22 Feb 2006 17:58:44 +0000
(17:58 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index affde1bae2fc7cc88e2e4d2e6bc391085b7c074c..3bf2f9871c0556d5be618989d3de579929e4846d 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-478,7
+478,7
@@
STATUS _http_request_object_requesthandler(http_request_object *obj, zval *this_
zval **ct_header;
/* only override if not already set */
zval **ct_header;
/* only override if not already set */
- if ((SUCCESS != zend_hash_find(Z_ARRVAL_PP(headers), "Content-Type", sizeof("Content-Type"), (void **) &ct_header))
&& (Z_TYPE_PP(ct_header) == IS_STRING)
) {
+ if ((SUCCESS != zend_hash_find(Z_ARRVAL_PP(headers), "Content-Type", sizeof("Content-Type"), (void **) &ct_header))) {
add_assoc_stringl(*headers, "Content-Type", Z_STRVAL_P(ctype), Z_STRLEN_P(ctype), 1);
}
} else {
add_assoc_stringl(*headers, "Content-Type", Z_STRVAL_P(ctype), Z_STRLEN_P(ctype), 1);
}
} else {