mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-05 12:22:52 +02:00
WS upgrade no returning error.
This commit is contained in:
parent
971e3bff4e
commit
58d029f455
3 changed files with 26 additions and 12 deletions
|
@ -44,7 +44,6 @@ func New(WebSocketManager types.WebSocketManager, ApiManager types.ApiManager, c
|
|||
router.Route("/api", ApiManager.Route)
|
||||
|
||||
router.Get("/api/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
//nolint
|
||||
WebSocketManager.Upgrade(w, r, func(r *http.Request) bool {
|
||||
return conf.AllowOrigin(r.Header.Get("Origin"))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue