2022-03-01 08:34:11 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
accept HTTP versions 1.*
diff --git a/src/http.lua b/src/http.lua index 42f4dd6..1c003d8 100644 --- a/src/http.lua +++ b/src/http.lua @@ -35,7 +35,7 @@ local function parse_request(data) if stage == "status" then local target, protocol req.method, target, protocol = line:match("(%S*) (%S*) (%S*)") - assert(protocol == "HTTP/1.1") + assert(protocol:sub(1, 7) == "HTTP/1.") req.path, req.query, req.fragment = parse_uri(target) stage = "header" elseif stage == "header" then