mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix(websocket): set User-Agent header (#8502)
This commit is contained in:
parent
a837fb9a07
commit
8d0b1b40f5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue