We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
recv_status_line
1 parent 46680f6 commit b058b52Copy full SHA for b058b52
http/client.lua
@@ -86,7 +86,7 @@ local function recv_status_line(sock, timeout)
86
return nil, err
87
end
88
89
- local code, status = data:match('^HTTP/1.1 +(%d+) +([%w%p ]*)\r?$')
+ local code, status = data:match('^HTTP/1.[01] +(%d+) +([%w%p ]*)\r?$')
90
if not code or not status then
91
return nil, 'invalid http status line'
92
0 commit comments