Merge "Remove general 'unauthorized' message from middleware"

This commit is contained in:
Jenkins 2013-09-11 22:58:52 +00:00 committed by Gerrit Code Review
commit 6198031f30

View File

@ -94,8 +94,6 @@ class HorizonMiddleware(object):
response_401 = http.HttpResponse(status=401) response_401 = http.HttpResponse(status=401)
response_401['X-Horizon-Location'] = response['location'] response_401['X-Horizon-Location'] = response['location']
return response_401 return response_401
else:
utils.add_logout_reason(request, response, _("Unauthorized."))
return response return response