mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 14:30:02 -04:00
minor bug fixes
This commit is contained in:
parent
718d22a97d
commit
885e83d2eb
5 changed files with 17 additions and 2 deletions
|
@ -50,6 +50,8 @@ class CurlWebSocket extends CurlSession {
|
|||
headers: this.options.headers || {}
|
||||
};
|
||||
if (this.protocols) {
|
||||
if (typeof this.protocols === "string")
|
||||
this.protocols = [this.protocols];
|
||||
request_options.headers["Sec-Websocket-Protocol"] = this.protocols.join(", ");
|
||||
}
|
||||
if (this.options.verbose) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue