Skip to content

Commit 7487d7a

Browse files
committed
411 content-length required
1 parent 7d033f1 commit 7487d7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/transports-uws/polling.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ export class Polling extends Transport {
124124

125125
const contentLengthHeader = Number(req.headers["content-length"]);
126126
if (!contentLengthHeader) {
127-
this.onError("invalid content-length header");
128-
res.writeStatus("400 Invalid content-length header").end();
127+
this.onError("content-length header required");
128+
res.writeStatus("411 Length Required").end();
129129
return;
130130
}
131131
if (contentLengthHeader > this.maxHttpBufferSize) {

0 commit comments

Comments
 (0)