k
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user