mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-01 18:31:14 -03:00
web_config: respect the client's character set for JSON
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user