mirror of
https://github.com/barronwaffles/dwc_network_server_emulator.git
synced 2026-04-25 07:52:58 -05:00
Presumably fixes #29
This commit is contained in:
parent
0481f1ab13
commit
8d5efa344d
|
|
@ -257,7 +257,7 @@ class NasHTTPServerHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
try:
|
||||
# I'm not sure about the replacement for '-', but it'll at least let it be decoded.
|
||||
# For the most part it's not important since it's mostly used for the devname/ingamesn fields.
|
||||
ret[k] = base64.b64decode(v[0].replace("*", "=").replace("?", "/").replace(">","+").replace("-","/"))
|
||||
ret[k] = base64.b64decode( urlparse.unquote( v[0] ).replace("*", "=").replace("?", "/").replace(">","+").replace("-","/") )
|
||||
except TypeError:
|
||||
print "Could not decode following string: ret[%s] = %s" % (k, v[0])
|
||||
print "url: %s" % str
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user