mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
add useragent to ws requests
This commit is contained in:
parent
0aec6e563c
commit
b5263a06fa
5 changed files with 8 additions and 6 deletions
|
@ -247,7 +247,7 @@ impl EpoxyClient {
|
|||
protocols: Vec<String>,
|
||||
headers: JsValue,
|
||||
) -> Result<EpoxyWebSocket, EpoxyError> {
|
||||
EpoxyWebSocket::connect(self, handlers, url, protocols, headers).await
|
||||
EpoxyWebSocket::connect(self, handlers, url, protocols, headers, &self.user_agent).await
|
||||
}
|
||||
|
||||
pub async fn connect_tcp(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue