Skip to content

Commit

Permalink
Update middleware.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeagercoder authored Apr 6, 2023
1 parent 9d04aea commit 4df7af4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service_lib/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def __init__(self, get_response):
self.get_response = get_response

def __call__(self, request):
message = json.dumps({'detail': 'Proxy Authentication Required.'})
message = json.dumps({'detail': 'Authentication Internal Service Required.'})
resp = HttpResponse(
message,
status=407,
status=403,
content_type='application/json'
)
auth = request.META.get('HTTP_PROXY_AUTHORIZATION')
auth = request.META.get('HTTP_AUTHORIZATION')
if auth is None:
return resp
auth = auth.split(' ')
Expand Down

0 comments on commit 4df7af4

Please sign in to comment.