diff options
Diffstat (limited to 'web/assets/js/model/outbound.js')
| -rw-r--r-- | web/assets/js/model/outbound.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 708728a8..aa83287c 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -194,6 +194,7 @@ class WsStreamSettings extends CommonClass { static fromJson(json={}) { return new WsStreamSettings( json.path, + json.host, json.headers && !ObjectUtil.isEmpty(json.headers.Host) ? json.headers.Host : '', ); } @@ -201,6 +202,7 @@ class WsStreamSettings extends CommonClass { toJson() { return { path: this.path, + host: this.host, headers: ObjectUtil.isEmpty(this.host) ? undefined : {Host: this.host}, }; } |
