mirror of
https://github.com/friendica/friendica
synced 2024-11-11 01:42:55 +00:00
parent
ef06fab744
commit
16f5965fd4
1 changed files with 1 additions and 7 deletions
|
@ -88,13 +88,7 @@ class GuzzleResponse extends Response implements IHTTPResult, ResponseInterface
|
|||
/** {@inheritDoc} */
|
||||
public function getContentType()
|
||||
{
|
||||
$contentTypes = $this->getHeader('Content-Type') ?? [];
|
||||
$countTypes = count($contentTypes);
|
||||
if ($countTypes > 0) {
|
||||
return $contentTypes[$countTypes - 1];
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
return implode($this->getHeader('Content-Type'));
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
|
|
Loading…
Reference in a new issue