mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Fix encode and params
This commit is contained in:
parent
6a6e9a597b
commit
7332cfa4b2
1 changed files with 7 additions and 2 deletions
|
@ -141,7 +141,12 @@ class StoppableHttpRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
''' Get the params
|
''' Get the params
|
||||||
'''
|
'''
|
||||||
try:
|
try:
|
||||||
params = dict(urlparse.parse_qsl(self.path[1:]))
|
path = self.path[1:]
|
||||||
|
|
||||||
|
if '?' in path:
|
||||||
|
path = path.split('?', 1)[1]
|
||||||
|
|
||||||
|
params = dict(urlparse.parse_qsl(path))
|
||||||
except Exception:
|
except Exception:
|
||||||
params = {}
|
params = {}
|
||||||
|
|
||||||
|
@ -161,7 +166,7 @@ class StoppableHttpRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
self.send_header('Content-type', 'text/html')
|
self.send_header('Content-type', 'text/html')
|
||||||
self.send_header('Content-Length', len(path))
|
self.send_header('Content-Length', len(path))
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
self.wfile.write(path.encode('utf-8'))
|
self.wfile.write(path)
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue