Compare commits

..

1 Commits

Author SHA1 Message Date
fc2019680a fix build script 2025-11-27 14:47:25 +02:00
2 changed files with 3 additions and 3 deletions

2
deps/mklua vendored

Submodule deps/mklua updated: 5f343c2126...0c05556eb1

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" and version ~= "1.0" then return nil, "only HTTP 1.1/1.0 supported, got " .. version end
if version ~= "1.1" then return nil, "only HTTP 1.1 supported" end
local headers, err = http_read_headers(stream);
if not headers then return nil, err end
@@ -288,7 +288,7 @@ local function http_read_res(stream)
local version, code = line:match "^HTTP/(%S-) (%S-) (.-)\r\n$";
if not version then return nil, "unexpected format" end
if version ~= "1.1" and version ~= "1.0" then return nil, "only HTTP 1.1/1.0 supported, got " .. version end
if version ~= "1.1" then return nil, "only HTTP 1.1 supported" end
local headers, err = http_read_headers(stream);
if not headers then return nil, err end