Skip to content

Commit

Permalink
fix(websocket): set User-Agent header (denoland#8502)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored Nov 26, 2020
1 parent a837fb9 commit 8d0b1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/ops/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub async fn op_ws_create(
let mut request = Request::builder().method(Method::GET).uri(&uri);

request =
request.header("User-Agent", format!("Deno/{}", crate::version::DENO));
request.header("User-Agent", format!("Deno/{}", crate::version::deno()));

if !args.protocols.is_empty() {
request = request.header("Sec-WebSocket-Protocol", args.protocols);
Expand Down

0 comments on commit 8d0b1b4

Please sign in to comment.