summaryrefslogtreecommitdiff
path: root/std/http/_io.ts
diff options
context:
space:
mode:
authorNoxazer <Noxazer-FR@users.noreply.github.com>2020-12-31 00:17:41 +0100
committerGitHub <noreply@github.com>2020-12-31 00:17:41 +0100
commit0163cedd804110cd410eb2cb92b299b0e555527f (patch)
tree5f67fa73cfafbf62851283e8edaf14914ae680eb /std/http/_io.ts
parente568ddf99687f635abe931c1eff2b8b37be3bc54 (diff)
fix(std/http): parsing of HTTP version header (#8902)
Diffstat (limited to 'std/http/_io.ts')
-rw-r--r--std/http/_io.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/http/_io.ts b/std/http/_io.ts
index b7efaf8e5..4ff3dd4e6 100644
--- a/std/http/_io.ts
+++ b/std/http/_io.ts
@@ -346,7 +346,7 @@ export async function readRequest(
req.conn = conn;
req.r = bufr;
[req.method, req.url, req.proto] = firstLine.split(" ", 3);
- [req.protoMinor, req.protoMajor] = parseHTTPVersion(req.proto);
+ [req.protoMajor, req.protoMinor] = parseHTTPVersion(req.proto);
req.headers = headers;
fixLength(req);
return req;