From d2256244c4f6dbb7312fa280b5523c544d8c10af Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 19 Feb 2019 11:58:32 +0100 Subject: [PATCH] rpc: fixup change to not verify websocket origin (#19128) This corrects the previous change which broke the build and was pushed by accident. --- rpc/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/websocket.go b/rpc/websocket.go index 6b986a914a..c5383667d9 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"))