summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-01-30 16:32:53 +0000
committerDmitry Stogov <dmitry@php.net>2004-01-30 16:32:53 +0000
commit4b74d4fbbac84189b3e5566ade2fc81283ee6020 (patch)
treea1bc3c206eea99876dd53d6d632ec104a6e8e708 /ext/soap/php_http.c
parent92aa602af0c2577866d069919a14519d28d0582e (diff)
downloadphp-git-4b74d4fbbac84189b3e5566ade2fc81283ee6020.tar.gz
Server part support for "document" style encoding was implemented
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index e4a6c9e0e7..3073ea73b8 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -298,9 +298,11 @@ int send_http_soap_request(zval *this_ptr, xmlDoc *doc, char *location, char *so
smart_str_append_const(&soap_headers,"\"\r\n");
} else {
smart_str_append_const(&soap_headers,"Content-Type: text/xml; charset=\"utf-8\"\r\n");
- smart_str_append_const(&soap_headers, "SOAPAction: \"");
- smart_str_appends(&soap_headers, soapaction);
- smart_str_append_const(&soap_headers, "\"\r\n");
+ if (soapaction) {
+ smart_str_append_const(&soap_headers, "SOAPAction: \"");
+ smart_str_appends(&soap_headers, soapaction);
+ smart_str_append_const(&soap_headers, "\"\r\n");
+ }
}
smart_str_append_const(&soap_headers,"Content-Length: ");
smart_str_append_long(&soap_headers, buf_size);