summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-01-13 09:31:50 +0000
committerDmitry Stogov <dmitry@php.net>2004-01-13 09:31:50 +0000
commitfceb95f12a0dcda2413d8938c2589f6dd9e9cb3f (patch)
tree1f7f254587d52d4daf7f7cd1bb60cc3f6f50b85e /ext/soap/php_http.c
parent51c86ab73f7d61f547593afbd6edd5f3f022f9ba (diff)
downloadphp-git-fceb95f12a0dcda2413d8938c2589f6dd9e9cb3f.tar.gz
XML parsing warnings and notices were disabled.
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 865161b9f0..d93568429e 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -306,7 +306,7 @@ int get_http_soap_response(zval *this_ptr, char **buffer, int *buffer_len TSRMLS
http_close = TRUE;
connection = get_http_header_value(http_headers,"Connection: ");
if (connection) {
- if (!strcmp(connection, "Keep-Alive")) {
+ if (strncasecmp(connection, "Keep-Alive", sizeof("Keep-Alive")-1) == 0) {
http_close = FALSE;
}
efree(connection);
@@ -331,7 +331,8 @@ int get_http_soap_response(zval *this_ptr, char **buffer, int *buffer_len TSRMLS
cmplen = strlen(content_type);
}
- if (strncmp(content_type, "text/xml", cmplen)) {
+ if (strncmp(content_type, "text/xml", cmplen) == 0 ||
+ strncmp(content_type, "application/soap+xml", cmplen == 0)) {
if (strncmp(http_body, "<?xml", 5)) {
zval *err;
MAKE_STD_ZVAL(err);