diff options
author | Nigel Tao <nigeltao@golang.org> | 2015-06-03 11:57:53 +1000 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2015-06-03 06:18:02 +0000 |
commit | 8d6170202b45a32f9b0fd4effe1e30135e11c48e (patch) | |
tree | 3926ac1758f4bf325e8243e70028087e9a3cb90d | |
parent | a74a0672349d0bb67e7d25f8e88944019c98a73b (diff) | |
download | net-8d6170202b45a32f9b0fd4effe1e30135e11c48e.tar.gz |
websocket: fix a minor grammar issue in a comment.
Fixes golang/go#10881
Change-Id: I9f16dd0425d4e3c4a05530411eb29a7193a9d242
Reviewed-on: https://go-review.googlesource.com/10621
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | websocket/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/websocket/server.go b/websocket/server.go index 7032213..33f99b1 100644 --- a/websocket/server.go +++ b/websocket/server.go @@ -95,8 +95,8 @@ func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) { // You might want to verify websocket.Conn.Config().Origin in the func. // If you use Server instead of Handler, you could call websocket.Origin and // check the origin in your Handshake func. So, if you want to accept -// non-browser client, which doesn't send Origin header, you could use Server -//. that doesn't check origin in its Handshake. +// non-browser clients, which do not send an Origin header, set a +// Server.Handshake that does not check the origin. type Handler func(*Conn) func checkOrigin(config *Config, req *http.Request) (err error) { |