From 79a1de9b140318837255476df36161d24147f4c6 Mon Sep 17 00:00:00 2001 From: zhmushan Date: Wed, 5 Dec 2018 09:34:35 +0800 Subject: [PATCH] fix statusCode Original: https://github.com/denoland/deno_std/commit/5fbbc2c46c67147415d70499b12630c4934c3b34 --- http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.ts b/http.ts index 4a4f0ccd95..c7d2851c05 100644 --- a/http.ts +++ b/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);