- fix a mistake crept in which prevented from setting custom request content type
authorMichael Wallner <mike@php.net>
Wed, 22 Feb 2006 17:58:44 +0000 (17:58 +0000)
committerMichael Wallner <mike@php.net>
Wed, 22 Feb 2006 17:58:44 +0000 (17:58 +0000)
http_request_object.c

index affde1bae2fc7cc88e2e4d2e6bc391085b7c074c..3bf2f9871c0556d5be618989d3de579929e4846d 100644 (file)
@@ -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 {