Replace HTTP Forbidden by HTTP Unauthorized

This commit is contained in:
Chteufleur 2016-06-20 20:49:09 +02:00
parent 5d61cf33cf
commit dd1af4e1e4
1 changed files with 2 additions and 2 deletions

View File

@ -61,10 +61,10 @@ func authHandler(w http.ResponseWriter, r *http.Request) {
if answer {
w.WriteHeader(http.StatusOK)
} else {
w.WriteHeader(http.StatusForbidden)
w.WriteHeader(http.StatusUnauthorized)
}
case <-time.After(time.Duration(TimeoutSec) * time.Second):
w.WriteHeader(http.StatusForbidden)
w.WriteHeader(http.StatusUnauthorized)
delete(xmpp.WaitMessageAnswers, transaction)
}
}