This commit is contained in:
Yuri Kuznetsov
2020-07-08 12:18:34 +03:00
parent 4266a38c01
commit de37982a64
@@ -43,6 +43,9 @@ class ResponseWrapper implements ApiResponse
public function __construct(Psr7Response $response)
{
$this->response = $response;
// Slim adds Authorization header. It's not needed.
$this->response = $this->response->withoutHeader('Authorization');
}
public function setStatus(int $code, ?string $reason = null)