Skip to content
Snippets Groups Projects
Commit 40fc2ef2 authored by Vladimir Homutov's avatar Vladimir Homutov Committed by GitHub
Browse files

Merge pull request #10 from rysiekpl/master

Minor bugfixes
parents c61f0137 24bf24ff
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class AuthHandler(BaseHTTPRequestHandler):
try:
auth_decoded = base64.b64decode(auth_header[6:])
user, passwd = auth_decoded.split(':', 2)
user, passwd = auth_decoded.split(':', 1)
except:
self.auth_failed(ctx)
......@@ -131,7 +131,7 @@ class AuthHandler(BaseHTTPRequestHandler):
if not hasattr(self, 'ctx'):
user = '-'
else:
user = ctx['user']
user = self.ctx['user']
sys.stdout.write("%s - %s [%s] %s\n" % (addr, user,
self.log_date_time_string(), format % args))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment