luci-base: handle application/json replies with charset specification
authorJo-Philipp Wich <jo@mein.io>
Wed, 10 Jul 2019 17:24:33 +0000 (01:24 +0800)
committerJo-Philipp Wich <jo@mein.io>
Fri, 26 Jul 2019 10:46:39 +0000 (12:46 +0200)
commit28ab21dd8d10b42b5473fd4949a25e22a98ee9cc
tree0c66da89feeaef897db8ffd68ceac3c384f09176
parenta388be0f28751707f8b52fc53f3dc94ba2ad9ace
luci-base: handle application/json replies with charset specification

On my router, the response header Content-Type is
`application/json; charset=UTF-8` instead of `application/json`, so
almost every feature is broken.

Fixes: #2851
Suggested-by: zhanhb <6323014+zhanhb@users.noreply.github.com>
[reword commit subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/xhr.js