diff --git a/cmd/testapi/main.go b/cmd/testapi/main.go index cacae48..3bb5cc7 100644 --- a/cmd/testapi/main.go +++ b/cmd/testapi/main.go @@ -82,7 +82,7 @@ func isV1(r *http.Request) bool { } func isWS(r *http.Request) bool { - return r.URL.Path == "/ws" + return r.URL.Path == "/ws" || strings.HasPrefix(r.URL.Path, "/ws/") } func (s *S) serveStatic(w http.ResponseWriter, r *http.Request) error { @@ -137,7 +137,7 @@ func (s *S) serveWS(httpw http.ResponseWriter, httpr *http.Request) error { return err } - return nil + return fmt.Errorf("not impl") } func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {