diff options
| author | Dmitry Stogov <dmitry@php.net> | 2005-05-23 06:25:16 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2005-05-23 06:25:16 +0000 |
| commit | 1417cbaf3058944809891677f2f7e335ace9df3a (patch) | |
| tree | 8b1bc23a363552230730b5218b17f9890ab3f416 /ext/soap/php_http.c | |
| parent | 25108c37ca395c67abcda1c32a39e9d02f95b5a0 (diff) | |
| download | php-git-1417cbaf3058944809891677f2f7e335ace9df3a.tar.gz | |
Handling responses with Content-Lenght: 0
Diffstat (limited to 'ext/soap/php_http.c')
| -rw-r--r-- | ext/soap/php_http.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 9b3c21cc15..0b15f85d9c 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -1129,6 +1129,14 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r if (header) { header_length = atoi(header); efree(header); + if (!header_length && !header_chunked) { + /* Empty response */ + http_buf = emalloc(1); + http_buf[0] = '\0'; + (*response) = http_buf; + (*out_size) = 0; + return TRUE; + } } if (header_chunked) { |
