From 5e9c17894a5ac6111828b85e89df5ed0048e78da Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Mon, 7 Oct 2024 09:31:54 +0200 Subject: [PATCH] fix: use the correct HTTP method (GET) for WS connections Closes: https://github.com/trunk-rs/trunk/issues/883 --- src/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy.rs b/src/proxy.rs index c158ca20..cdd015d5 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -315,7 +315,7 @@ impl ProxyHandlerWebSocket { let outbound_request = match make_outbound_request( inbound_proto, &outbound_uri, - http::Method::CONNECT, + http::Method::GET, req_headers, override_headers, ) {