Handle if getting cookies errors for some reason..
parent
91e9e9093d
commit
1eb81d2da5
|
@ -182,6 +182,9 @@ func auth(n httprouter.Handle) httprouter.Handle {
|
||||||
} else if err == http.ErrNoCookie {
|
} else if err == http.ErrNoCookie {
|
||||||
gothic.BeginAuthHandler(w, r)
|
gothic.BeginAuthHandler(w, r)
|
||||||
return
|
return
|
||||||
|
} else if err != nil {
|
||||||
|
fmt.Fprintln(w, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue