summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-09-06 11:03:59 +0000
committerDmitry Stogov <dmitry@php.net>2006-09-06 11:03:59 +0000
commitba833d2bc05227f54643176260f3f6127e59eaa8 (patch)
tree7d0a224c22a46e14c51c4e547af45868cf46f78a /ext/soap/php_http.c
parent97fdcf0f3bb9f99716091d7b70538f9bf33ce2f4 (diff)
downloadphp-git-ba833d2bc05227f54643176260f3f6127e59eaa8.tar.gz
Fixed support for endpoint's URL without <path> part (Rob)
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 6032fa0cb4..229fb52a21 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -398,6 +398,8 @@ try_again:
}
if (phpurl->path) {
smart_str_appends(&soap_headers, phpurl->path);
+ } else {
+ smart_str_appendc(&soap_headers, '/');
}
if (phpurl->query) {
smart_str_appendc(&soap_headers, '?');
@@ -499,6 +501,8 @@ try_again:
PHP_MD5Update(&md5ctx, (unsigned char*)"POST:", sizeof("POST:")-1);
if (phpurl->path) {
PHP_MD5Update(&md5ctx, (unsigned char*)phpurl->path, strlen(phpurl->path));
+ } else {
+ PHP_MD5Update(&md5ctx, (unsigned char*)"/", 1);
}
if (phpurl->query) {
PHP_MD5Update(&md5ctx, (unsigned char*)"?", 1);
@@ -548,6 +552,8 @@ try_again:
smart_str_append_const(&soap_headers, "\", uri=\"");
if (phpurl->path) {
smart_str_appends(&soap_headers, phpurl->path);
+ } else {
+ smart_str_appendc(&soap_headers, '/');
}
if (phpurl->query) {
smart_str_appendc(&soap_headers, '?');