mirror of
https://github.com/guzzle/guzzle.git
synced 2025-02-25 18:43:22 +01:00
commit
cc72f9beab
@ -45,7 +45,7 @@ class DefaultResponseParser implements ResponseParserInterface
|
||||
if ($result->getBody()) {
|
||||
if (stripos($contentType, 'json') !== false) {
|
||||
$result = $result->json();
|
||||
} if (stripos($contentType, 'xml') !== false) {
|
||||
} elseif (stripos($contentType, 'xml') !== false) {
|
||||
$result = $result->xml();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user