We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d5acb commit ca946c7Copy full SHA for ca946c7
http/request.lua
@@ -53,7 +53,7 @@ local function new_from_uri(uri_t, headers)
53
end
54
local scheme = assert(uri_t.scheme, "URI missing scheme")
55
assert(scheme == "https" or scheme == "http" or scheme == "ws" or scheme == "wss", "scheme not valid")
56
- local host = tostring(assert(uri_t.host, "URI must include a host")) -- tostring required to e.g. convert lpeg_patterns IPv6 objects
+ local host = assert(uri_t.host, "URI must include a host")
57
local port = uri_t.port or http_util.scheme_to_port[scheme]
58
local is_connect -- CONNECT requests are a bit special, see http2 spec section 8.3
59
if headers == nil then
0 commit comments