This commit is contained in:
Simon Ser 2022-02-21 11:11:27 +01:00
parent 5a641ceca1
commit 13008e0d96
2 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@ func NewIMAP(addr string, tls bool) AuthProvider {
}
func (prov *IMAPProvider) Middleware() func(http.Handler) http.Handler {
return func (next http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
prov.doAuth(next, w, r)
})