mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 04:51:07 -05:00
Fix server.py on current Python version.
This commit is contained in:
parent
f4cfdf9722
commit
7de2ddf161
@ -100,7 +100,8 @@ class MyHandler(http.server.BaseHTTPRequestHandler):
|
||||
if aa[0] == 'password':
|
||||
p = aa[1]
|
||||
if u and p:
|
||||
raw = base64.b64encode('%s:%s'.encode('utf-8') % (u,p)).decode('utf-8')
|
||||
auth = '%s:%s' % (u,p)
|
||||
raw = base64.b64encode(auth.encode('utf-8')).decode('utf-8')
|
||||
if raw != base64string:
|
||||
query = ''
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user