lib/httpx/plugins/h2c.rb in httpx-1.2.6 vs lib/httpx/plugins/h2c.rb in httpx-1.3.0
- old
+ new
@@ -37,10 +37,10 @@
# build upgrade request
upgrade_request.headers.add("connection", "upgrade")
upgrade_request.headers.add("connection", "http2-settings")
upgrade_request.headers["upgrade"] = "h2c"
- upgrade_request.headers["http2-settings"] = HTTP2Next::Client.settings_header(upgrade_request.options.http2_settings)
+ upgrade_request.headers["http2-settings"] = ::HTTP2::Client.settings_header(upgrade_request.options.http2_settings)
super(upgrade_request, *remainder)
end
end