Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Fix the header type in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
mardiros committed Jun 28, 2017
1 parent eb404e6 commit 2198117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyshop/views/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def authbasic(request):
if User.by_credentials(DBSession(), username, password):
return HTTPFound(location=request.url)
return Response(status=401,
headerlist=[(b'WWW-Authenticate',
b'Basic realm="pyshop repository access"'
headerlist=[(str('WWW-Authenticate'),
str('Basic realm="pyshop repository access"'),
)],
)

0 comments on commit 2198117

Please sign in to comment.