mirror of https://github.com/gorilla/websocket.git
Update comments
This commit is contained in:
parent
773808209f
commit
75260b9279
|
@ -20,7 +20,8 @@ var upgrader = websocket.Upgrader{
|
||||||
CheckOrigin: func(r *http.Request) bool {
|
CheckOrigin: func(r *http.Request) bool {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
} // use default options, except origin. Allows cross-origin requests for testing.
|
} /* use default options, except origin. Allows cross-origin requests for testing.
|
||||||
|
Presents a security risk if run in production */
|
||||||
|
|
||||||
func echo(w http.ResponseWriter, r *http.Request) {
|
func echo(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.URL.Path != "/" {
|
if r.URL.Path != "/" {
|
||||||
|
|
Loading…
Reference in New Issue