X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FResponse.php;h=f9d46da83b7c03679b188df009cb0f90075e5262;hb=f059e56e0f82e64024da7dcbb1ecac20ad84c1b5;hp=e4bfde7a3c6d949c6c0ad72dca685ef29e987f4c;hpb=eaad2207387f23ae9183d03f843fef0a902367ac;p=friendica.git diff --git a/src/Module/Response.php b/src/Module/Response.php index e4bfde7a3c..f9d46da83b 100644 --- a/src/Module/Response.php +++ b/src/Module/Response.php @@ -96,6 +96,9 @@ class Response implements ICanCreateResponses } switch ($type) { + case static::TYPE_HTML: + $content_type = $content_type ?? 'text/html'; + break; case static::TYPE_JSON: $content_type = $content_type ?? 'application/json'; break; @@ -140,6 +143,6 @@ class Response implements ICanCreateResponses // Setting the response type as an X-header for direct usage $this->headers[static::X_HEADER] = $this->type; - return new \GuzzleHttp\Psr7\Response($this->status, $this->headers, $this->content, $this->reason); + return new \GuzzleHttp\Psr7\Response($this->status, $this->headers, $this->content, '1.1', $this->reason); } }