mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
fix statusCode
This commit is contained in:
parent
f574e3c6db
commit
5fbbc2c46c
1 changed files with 1 additions and 1 deletions
2
http.ts
2
http.ts
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue