From b8ff5e0a3b6fe280e618298a208701590dae7dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20C=C3=A9sar?= Date: Tue, 17 Oct 2023 21:56:05 +0200 Subject: [PATCH] refactor: use helper method on worker --- worker/src/ws.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/src/ws.rs b/worker/src/ws.rs index f1f7918..04f209d 100644 --- a/worker/src/ws.rs +++ b/worker/src/ws.rs @@ -14,7 +14,7 @@ pub async fn linkup_ws_handler(req: Request, sessions: SessionAllocator) -> Resu Err(_) => return plaintext_error("Bad or missing request url", 400), }; - let mut headers = req.headers().clone().entries().collect::(); + let mut headers = LinkupHeaderMap::from_worker_request(&req); let (session_name, config) = match sessions.get_request_session(&url, &headers).await {