mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
Add Websocket Upgrade Test (#5613)
Co-authored-by: Your Name <you@example.com> Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
This commit is contained in:
co-authored by
Your Name
Frank Elsinga
Louis Lam
parent
804344c5ac
commit
5d1b372072
@@ -100,6 +100,8 @@ class Monitor extends BeanModel {
|
||||
parent: this.parent,
|
||||
childrenIDs: preloadData.childrenIDs.get(this.id) || [],
|
||||
url: this.url,
|
||||
wsIgnoreSecWebsocketAcceptHeader: this.getWsIgnoreSecWebsocketAcceptHeader(),
|
||||
wsSubprotocol: this.wsSubprotocol,
|
||||
method: this.method,
|
||||
hostname: this.hostname,
|
||||
port: this.port,
|
||||
@@ -276,6 +278,14 @@ class Monitor extends BeanModel {
|
||||
return Boolean(this.ignoreTls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse to boolean
|
||||
* @returns {boolean} Should WS headers be ignored?
|
||||
*/
|
||||
getWsIgnoreSecWebsocketAcceptHeader() {
|
||||
return Boolean(this.wsIgnoreSecWebsocketAcceptHeader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse to boolean
|
||||
* @returns {boolean} Is the monitor in upside down mode?
|
||||
|
||||
Reference in New Issue
Block a user