From c47161efbc4d1ab59950fb2180d6fe69b3c5ab2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Wed, 30 Nov 2016 13:09:52 +0100 Subject: [PATCH] fixed bug: UnauthorizedResponse was sending HTTP 500 message --- http_utility.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_utility.go b/http_utility.go index 76d2b57..9896b87 100644 --- a/http_utility.go +++ b/http_utility.go @@ -48,8 +48,8 @@ func InternalServerErrorResponse(w http.ResponseWriter, req *http.Request) { // UnauthorizedError writes HTTP error 401 to w. func UnauthorizedResponse(w http.ResponseWriter, req *http.Request) { ErrorResponse(w, req, http.StatusUnauthorized, []HttpErrorDesc{ - { "en", templateHttpErr500_EN }, - { "rs", templateHttpErr500_RS }, + { "en", templateHttpErr401_EN }, + { "rs", templateHttpErr401_RS }, }) } -- 1.8.1.2