cvs: php-src /ext/soap php_http.c

From: Date: Mon, 23 May 2005 06:25:16 +0000
Subject: cvs: php-src /ext/soap php_http.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31955@lists.php.net to get a copy of this message
dmitry Mon May 23 02:25:16 2005 EDT Modified files: /php-src/ext/soap php_http.c Log: Handling responses with Content-Lenght: 0 http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.70&r2=1.71&ty=u Index: php-src/ext/soap/php_http.c diff -u php-src/ext/soap/php_http.c:1.70 php-src/ext/soap/php_http.c:1.71 --- php-src/ext/soap/php_http.c:1.70 Tue May 10 06:20:58 2005 +++ php-src/ext/soap/php_http.c Mon May 23 02:25:16 2005 @@ -17,7 +17,7 @@ | Dmitry Stogov <dmitry@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_http.c,v 1.70 2005/05/10 10:20:58 dmitry Exp $ */ +/* $Id: php_http.c,v 1.71 2005/05/23 06:25:16 dmitry Exp $ */ #include "php_soap.h" #include "ext/standard/base64.h" @@ -1129,6 +1129,14 @@ 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) {

« previous php.cvs (#31955) next »