test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user