1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-15 00:05:15 +02:00

Ignore http.RsponseWriter errors

This commit is contained in:
Ralph Slooten
2022-08-07 00:09:32 +12:00
parent f6ae6bbdbb
commit 788e390e01
5 changed files with 14 additions and 14 deletions

View File

@ -64,7 +64,7 @@ func Listen() {
func basicAuthResponse(w http.ResponseWriter) {
w.Header().Set("WWW-Authenticate", `Basic realm="Login"`)
w.WriteHeader(http.StatusUnauthorized)
w.Write([]byte("Unauthorised.\n"))
_, _ = w.Write([]byte("Unauthorised.\n"))
}
type gzipResponseWriter struct {