We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705e494 commit b6e676cCopy full SHA for b6e676c
1 file changed
server/index.ts
@@ -2,7 +2,7 @@ import http from "node:http";
2
import { toSseChunks } from "./stream.js";
3
4
const server = http.createServer((req, res) => {
5
- if (req.url === "/stream") {
+ if (req.url === "/stream" && req.method === "GET") {
6
res.writeHead(200, {
7
"Content-Type": "text/event-stream",
8
"Cache-Control": "no-cache",
0 commit comments