We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873ea92 commit 6353c7cCopy full SHA for 6353c7c
index.js
@@ -64,7 +64,7 @@ function impl (req, resOrSocket, headOrNil, {
64
}
65
66
67
- if (!/1\.1|2\.\d/.test(req.httpVersion)) {
+ if (req.httpVersion !== '1.1' && req.httpVersion !== '2.0') {
68
throw createError('http version not supported', null, 505)
69
70
0 commit comments