(pattern, s string)
| 260 | } |
| 261 | |
| 262 | func match(pattern, s string) (bool, error) { |
| 263 | return path.Match(strings.ToLower(pattern), strings.ToLower(s)) |
| 264 | } |
| 265 | |
| 266 | func selectSubprotocol(r *http.Request, subprotocols []string) string { |
| 267 | cps := headerTokens(r.Header, "Sec-WebSocket-Protocol") |
no outgoing calls
no test coverage detected
searching dependent graphs…