cvs: pecl /http http_request_object.c
| From: | Michael Wallner | Date: | Wed, 22 Feb 2006 17:58:45 +0000 |
| Subject: | cvs: pecl /http http_request_object.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5242@lists.php.net to get a copy of this message | ||
mike Wed Feb 22 17:58:45 2006 UTC
Modified files:
/pecl/http http_request_object.c
Log:
- fix a mistake crept in which prevented from setting custom request content type
http://cvs.php.net/viewcvs.cgi/pecl/http/http_request_object.c?r1=1.115&r2=1.116&diff_format=u
Index: pecl/http/http_request_object.c
diff -u pecl/http/http_request_object.c:1.115 pecl/http/http_request_object.c:1.116
--- pecl/http/http_request_object.c:1.115 Mon Feb 20 16:06:21 2006
+++ pecl/http/http_request_object.c Wed Feb 22 17:58:44 2006
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_request_object.c,v 1.115 2006/02/20 16:06:21 mike Exp $ */
+/* $Id: http_request_object.c,v 1.116 2006/02/22 17:58:44 mike Exp $ */
#define HTTP_WANT_CURL
#include "php_http.h"
@@ -478,7 +478,7 @@
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 {