From: Michael Wallner Date: Wed, 22 Feb 2006 17:58:44 +0000 (+0000) Subject: - fix a mistake crept in which prevented from setting custom request content type X-Git-Tag: RELEASE_0_24_1~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=51c3a4d29b5b0ada721d8f0c9aa55581079bdf91;p=m6w6%2Fext-http - fix a mistake crept in which prevented from setting custom request content type --- diff --git a/http_request_object.c b/http_request_object.c index affde1b..3bf2f98 100644 --- 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 */ - 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 {