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

fix statusCode

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

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);