Skip to content

Commit 941f767

Browse files
sergioalboradaCodeWithKyrian
authored andcommitted
Fix: correct argument order in response()->stream for legacy SSE mode
1 parent a6a04f9 commit 941f767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transports/HttpServerTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function handleSseRequest(Request $request): StreamedResponse
169169
}
170170

171171
$this->emit('client_disconnected', [$sessionId, 'SSE stream closed']);
172-
}, [
172+
}, headers: [
173173
'Content-Type' => 'text/event-stream',
174174
'Cache-Control' => 'no-cache',
175175
'Connection' => 'keep-alive',

0 commit comments

Comments
 (0)