From ab3856a40e41831ef1d0767f90c75f622dedb04f Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Sat, 14 Dec 2024 19:30:59 -0700 Subject: [PATCH] k --- cmd/testapi/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {