From dd1af4e1e4b557d9705847f17943f05017275682 Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Mon, 20 Jun 2016 20:49:09 +0200 Subject: [PATCH] Replace HTTP Forbidden by HTTP Unauthorized --- http/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/http.go b/http/http.go index f965814..8d8556f 100644 --- a/http/http.go +++ b/http/http.go @@ -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) } }