This commit is contained in:
2023-04-16 14:07:35 +08:00
parent fb95cc6ca6
commit 3512038d5e
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class ConstrictResponse extends Message implements ResponseInterface
*/
public function withContentType(ContentType $type): static
{
$this->withHeader('Content-Type', $type->name);
$this->withHeader('Content-Type', $type->toString());
return $this;
}