- Timestamp:
- 2012/02/09 01:26:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/module/SOAP/Transport/HTTP.php
r21318 r21461 270 270 /* Largely borrowed from HTTP_Request. */ 271 271 $this->result_headers = array(); 272 $headers = split("\r?\n", $headers);272 $headers = preg_split("/\r?\n/", $headers); 273 273 foreach ($headers as $value) { 274 if (strpos($value, ':') === false) {274 if (strpos($value, ':') === false) { 275 275 $this->result_headers[0] = $value; 276 276 continue; 277 277 } 278 list($name, $value) = split(':', $value);278 list($name, $value) = explode(':', $value); 279 279 $headername = strtolower($name); 280 280 $headervalue = trim($value); … … 343 343 344 344 switch($code) { 345 case 100: // Continue 345 // Continue 346 case 100: 346 347 $this->incoming_payload = $match[2]; 347 348 return $this->_parseResponse(); 348 349 case 200: 349 350 case 202: 350 $this->incoming_payload = trim($match[2]); 351 if (!strlen($this->incoming_payload)) { 351 if (!strlen(trim($match[2]))) { 352 352 /* Valid one-way message response. */ 353 353 return true;
Note: See TracChangeset
for help on using the changeset viewer.