mirror of
https://github.com/1f349/lotus.git
synced 2024-11-09 22:52:53 +00:00
Use get instead of connect
This commit is contained in:
parent
644b5e73fb
commit
29b1694840
@ -23,7 +23,7 @@ func SetupApiServer(listen string, auth *AuthChecker, send Smtp, recv Imap) *htt
|
||||
// === SMTP ===
|
||||
r.POST("/smtp", auth.Middleware(MessageSender(send)))
|
||||
|
||||
r.Handle(http.MethodConnect, "/imap", func(rw http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
r.GET("/imap", func(rw http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||
// upgrade to websocket conn and defer close
|
||||
c, err := upgrader.Upgrade(rw, req, nil)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user