aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2019-02-19 18:58:32 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-02-19 18:58:32 +0800
commitd2256244c4f6dbb7312fa280b5523c544d8c10af (patch)
tree7933b9f9b2483465c3ba9d4491996ad08612c8d9
parent26d3a8ca80bf78946eca7ccdc5945c2ffc6ce8fb (diff)
downloadgo-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.gz
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.bz2
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.lz
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.xz
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.tar.zst
go-tangerine-d2256244c4f6dbb7312fa280b5523c544d8c10af.zip
rpc: fixup change to not verify websocket origin (#19128)
This corrects the previous change which broke the build and was pushed by accident.
-rw-r--r--rpc/websocket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/websocket.go b/rpc/websocket.go
index 6b986a914..c5383667d 100644
--- a/rpc/websocket.go
+++ b/rpc/websocket.go
@@ -129,7 +129,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
// Origin. Non-browser software can put anything in origin and checking it doesn't
// provide additional security.
if _, ok := req.Header["Origin"]; !ok {
- return
+ return nil
}
// Verify origin against whitelist.
origin := strings.ToLower(req.Header.Get("Origin"))