mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
ws: allow to set Origin header and default to nil
This commit is contained in:
1 parent
8a2e95b17e
commit
4887089a4b
6 files changed
+12
-8
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user