Fix string encoding

This commit is contained in:
angelblue05 2018-09-08 14:31:20 -05:00
parent 47175fb216
commit 010dc3243a

View file

@ -53,10 +53,10 @@ class HTTP(object):
def _replace_user_info(self, string):
if self.config['auth.server']:
string = string.replace("{server}", self.config['auth.server'])
string = string.decode('utf-8').replace("{server}", self.config['auth.server'])
if self.config['auth.user_id']:
string = string.replace("{UserId}", self.config['auth.user_id'])
string = string.decode('utf-8').replace("{UserId}", self.config['auth.user_id'])
return string