1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00

fix statusCode

This commit is contained in:
zhmushan 2018-12-05 09:34:35 +08:00 committed by Ryan Dahl
parent f574e3c6db
commit 5fbbc2c46c

View file

@ -70,7 +70,7 @@ class ServerRequest {
throw Error("bad status code");
}
let out = `HTTP/${protoMajor}.${protoMinor} ${r.status} ${statusText}\r\n`;
let out = `HTTP/${protoMajor}.${protoMinor} ${statusCode} ${statusText}\r\n`;
setContentLength(r);