Skip to content

Commit

Permalink
add support for both HTTP/1.1 and HTTP/2 (h2)
Browse files Browse the repository at this point in the history
  • Loading branch information
findstr committed Jul 22, 2024
1 parent e472379 commit f05e950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib/core/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function M.listen(conf)
end
return fd
end
local alpn_protos = {"h2"}
local alpn_protos = {"http/1.1", "h2"}

function M.request(method, url, header, close, alpn_protos)
local scheme, host, port, path = parseurl(url)
Expand Down

0 comments on commit f05e950

Please sign in to comment.