mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Merge pull request #252 from mcarlton00/redundant-encoding
Don't encode strings that don't need it
This commit is contained in:
commit
94cbaf9c94
1 changed files with 4 additions and 4 deletions
|
@ -355,10 +355,10 @@ class API(object):
|
||||||
|
|
||||||
def get_default_headers(self):
|
def get_default_headers(self):
|
||||||
auth = "MediaBrowser "
|
auth = "MediaBrowser "
|
||||||
auth += "Client=%s, " % self.config.data['app.name'].encode('utf-8')
|
auth += "Client=%s, " % self.config.data['app.name']
|
||||||
auth += "Device=%s, " % self.config.data['app.device_name'].encode('utf-8')
|
auth += "Device=%s, " % self.config.data['app.device_name']
|
||||||
auth += "DeviceId=%s, " % self.config.data['app.device_id'].encode('utf-8')
|
auth += "DeviceId=%s, " % self.config.data['app.device_id']
|
||||||
auth += "Version=%s" % self.config.data['app.version'].encode('utf-8')
|
auth += "Version=%s" % self.config.data['app.version']
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
|
|
Loading…
Reference in a new issue