mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
web_config: respect the client's character set for JSON
This commit is contained in:
parent
5c16b5598b
commit
d17ba69f9e
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|||
postvars = parse_qs(url_str, keep_blank_values=1)
|
||||
elif ctype == 'application/json':
|
||||
length = int(self.headers['content-length'])
|
||||
url_str = self.rfile.read(length).decode('utf-8')
|
||||
url_str = self.rfile.read(length).decode(pdict['charset'])
|
||||
postvars = json.loads(url_str)
|
||||
else:
|
||||
postvars = {}
|
||||
|
|
Loading…
Reference in a new issue