diff --git a/http-message/Response.php b/http-message/Response.php index c0b1781b..ebceebd8 100644 --- a/http-message/Response.php +++ b/http-message/Response.php @@ -113,15 +113,6 @@ class Response implements ResponseInterface return $this->hasHeader('Content-Type'); } - - /** - * @return string - */ - #[Pure] public function getContentType(): string - { - return $this->getHeaderLine('Content-Type'); - } - /** * @param string|null $value * @return Response diff --git a/http-server/Constrict/ResponseInterface.php b/http-server/Constrict/ResponseInterface.php index 036b66b2..053b97c3 100644 --- a/http-server/Constrict/ResponseInterface.php +++ b/http-server/Constrict/ResponseInterface.php @@ -43,9 +43,9 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface /** - * @return string + * @return string|null */ - public function getContentType(): string; + public function getContentType(): ?string; /**