Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 08ab941

Browse files
committed
prepare responses without content-type
1 parent 5027256 commit 08ab941

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Http/OctaneHandler.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public function handleRequest(?HttpRequestEvent $event, ?Context $context): Http
2929
$response = OctaneClient::handle($request);
3030
}
3131

32+
if (! $response->headers->has('Content-Type')) {
33+
$response->prepare($request);
34+
}
35+
3236
return new HttpResponse(
3337
$response->getContent(),
3438
$response->headers->all(),

0 commit comments

Comments
 (0)