ws: allow to set Origin header and default to nil

This commit is contained in:
nadoo committed 2020-11-07 19:20:35 +08:00
1 parent 8a2e95b17e
commit 4887089a4b
6 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ func NewWSServer(s string, p proxy.Proxy) (proxy.Server, error) {
// prepare transport listener
// TODO: check here
if len(transport) < 2 {
return nil, errors.New("[tls] malformd listener:" + s)
return nil, errors.New("[ws] malformd listener:" + s)
}
w, err := NewWS(transport[0], nil, p)