Skip to content

Commit 8d61702

Browse files
committed
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>
1 parent a74a067 commit 8d61702

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ func (s Server) serveWebSocket(w http.ResponseWriter, req *http.Request) {
9595
// You might want to verify websocket.Conn.Config().Origin in the func.
9696
// If you use Server instead of Handler, you could call websocket.Origin and
9797
// check the origin in your Handshake func. So, if you want to accept
98-
// non-browser client, which doesn't send Origin header, you could use Server
99-
//. that doesn't check origin in its Handshake.
98+
// non-browser clients, which do not send an Origin header, set a
99+
// Server.Handshake that does not check the origin.
100100
type Handler func(*Conn)
101101

102102
func checkOrigin(config *Config, req *http.Request) (err error) {

0 commit comments

Comments
 (0)