Skip to content

Commit

Permalink
refactor: use helper method on worker
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoccesar committed Oct 17, 2023
1 parent 3b20311 commit b8ff5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<LinkupHeaderMap>();
let mut headers = LinkupHeaderMap::from_worker_request(&req);

let (session_name, config) =
match sessions.get_request_session(&url, &headers).await {
Expand Down

0 comments on commit b8ff5e0

Please sign in to comment.