diff --git a/cli/ops/websocket.rs b/cli/ops/websocket.rs index c8fb895431..40f5fd53bf 100644 --- a/cli/ops/websocket.rs +++ b/cli/ops/websocket.rs @@ -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);