Commit c47161efbc4d1ab59950fb2180d6fe69b3c5ab2a

Authored by Marko Tikvić
1 parent e1fbb41f91
Exists in master and in 1 other branch v2

fixed bug: UnauthorizedResponse was sending HTTP 500 message

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
... ... @@ -48,8 +48,8 @@ func InternalServerErrorResponse(w http.ResponseWriter, req *http.Request) {
48 48 // UnauthorizedError writes HTTP error 401 to w.
49 49 func UnauthorizedResponse(w http.ResponseWriter, req *http.Request) {
50 50 ErrorResponse(w, req, http.StatusUnauthorized, []HttpErrorDesc{
51   - { "en", templateHttpErr500_EN },
52   - { "rs", templateHttpErr500_RS },
  51 + { "en", templateHttpErr401_EN },
  52 + { "rs", templateHttpErr401_RS },
53 53 })
54 54 }
55 55  
... ...