(req *http.Request)
| 373 | } |
| 374 | |
| 375 | func websocketTokenMatches(req *http.Request) bool { |
| 376 | return req.Method == "GET" && |
| 377 | req.Header.Get("Upgrade") == "websocket" && |
| 378 | req.FormValue("authtoken") == Token() |
| 379 | } |
| 380 | |
| 381 | func TriedAuthorization(req *http.Request) bool { |
| 382 | // Currently a simple test just using HTTP basic auth |
no test coverage detected