parent
ef06fab744
commit
16f5965fd4
|
@ -88,13 +88,7 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
public function getContentType()
|
public function getContentType()
|
||||||
{
|
{
|
||||||
$contentTypes = $this->getHeader('Content-Type') ?? [];
|
return implode($this->getHeader('Content-Type'));
|
||||||
$countTypes = count($contentTypes);
|
|
||||||
if ($countTypes > 0) {
|
|
||||||
return $contentTypes[$countTypes - 1];
|
|
||||||
} else {
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user