main
parent
d5a290c60d
commit
ab3856a40e
|
|
@ -82,7 +82,7 @@ func isV1(r *http.Request) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func isWS(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 {
|
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 err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return fmt.Errorf("not impl")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {
|
func (s *S) serveV1(w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue