Replace HTTP Forbidden by HTTP Unauthorized
This commit is contained in:
parent
5d61cf33cf
commit
dd1af4e1e4
|
|
@ -61,10 +61,10 @@ func authHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if answer {
|
if answer {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
} else {
|
} else {
|
||||||
w.WriteHeader(http.StatusForbidden)
|
w.WriteHeader(http.StatusUnauthorized)
|
||||||
}
|
}
|
||||||
case <-time.After(time.Duration(TimeoutSec) * time.Second):
|
case <-time.After(time.Duration(TimeoutSec) * time.Second):
|
||||||
w.WriteHeader(http.StatusForbidden)
|
w.WriteHeader(http.StatusUnauthorized)
|
||||||
delete(xmpp.WaitMessageAnswers, transaction)
|
delete(xmpp.WaitMessageAnswers, transaction)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue