diff options
| author | zhmushan <zhmushan@qq.com> | 2018-12-05 09:34:35 +0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-04 18:13:11 -0800 |
| commit | 79a1de9b140318837255476df36161d24147f4c6 (patch) | |
| tree | 7e358747b309fd2cec095ba4eadd987999acb6ef | |
| parent | 6a7c01c2f039c9e3be8a5c4694322dc0a39e78df (diff) | |
fix statusCode
Original: https://github.com/denoland/deno_std/commit/5fbbc2c46c67147415d70499b12630c4934c3b34
| -rw-r--r-- | http.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
