This commit is contained in:
2025-11-27 14:55:41 +02:00
parent bc3256cc4c
commit 5a30c33bc6

View File

@@ -270,7 +270,7 @@ local function http_read_req(stream)
local type, path, version = line:match "^(%S-) (%S-) HTTP/(%S-)\r\n$";
if not type then return nil, "unexpected format" end
if version ~= "1.1" then return nil, "only HTTP 1.1 supported" end
if version ~= "1.1" then return nil, "only HTTP 1.1 supported, got " .. version end
local headers, err = http_read_headers(stream);
if not headers then return nil, err end