|
@@ 4614-4618 (lines=5) @@
|
| 4611 |
|
|
| 4612 |
|
return false; |
| 4613 |
|
} |
| 4614 |
|
if (false === strpos($headers['content-type'], 'text/xml')) { |
| 4615 |
|
$this->setError('Request not of type text/xml'); |
| 4616 |
|
|
| 4617 |
|
return false; |
| 4618 |
|
} |
| 4619 |
|
if (strpos($headers['content-type'], '=')) { |
| 4620 |
|
$enc = str_replace('"', '', substr(strstr($headers['content-type'], '='), 1)); |
| 4621 |
|
$this->debug('Got response encoding: ' . $enc); |
|
@@ 8155-8159 (lines=5) @@
|
| 8152 |
|
|
| 8153 |
|
return false; |
| 8154 |
|
} |
| 8155 |
|
if (false === strpos($headers['content-type'], 'text/xml')) { |
| 8156 |
|
$this->setError('Response not of type text/xml: ' . $headers['content-type']); |
| 8157 |
|
|
| 8158 |
|
return false; |
| 8159 |
|
} |
| 8160 |
|
if (strpos($headers['content-type'], '=')) { |
| 8161 |
|
$enc = str_replace('"', '', substr(strstr($headers['content-type'], '='), 1)); |
| 8162 |
|
$this->debug('Got response encoding: ' . $enc); |