Skip to content

Commit 1efbc70

Browse files
committed
fix(parser): get_http_version method for request parser
1 parent c9c80ec commit 1efbc70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llhttp/parser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ end
4343
---@return number http_version
4444
function Parser:get_http_version()
4545
-- upstream issue: https://github.com/nodejs/llhttp/issues/177
46-
if not self._completed_url and not self._completed_status then
46+
if not self._completed_headers and not self._completed_status then
4747
error("http_version not parsed yet")
4848
end
4949

0 commit comments

Comments
 (0)