commit | 75e4a3195fe136ef2965fc0aafbdaebc7321f88a | [log] [tgz] |
---|---|---|
author | Yutaka Hirano <yhirano@chromium.org> | Tue Nov 21 10:10:43 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Nov 21 10:10:43 2017 |
tree | 015087ae96c087d07f0295dea1e29337049392d2 | |
parent | fe745faf6961210246f7867bf7800e8449a797b9 [diff] |
[XHR] Do not replace request content-type "utf-8" charset The spec asks us to replace the charset to "UTF-8" only when it is not equal to "UTF-8" case insensitively. https://xhr.spec.whatwg.org/#the-send()-method """ Otherwise, if the header whose name is a byte-case-insensitive match for `Content-Type` in author request headers has a value that is a valid MIME type, which has a `charset` parameter whose value is not a byte-case-insensitive match for encoding, and encoding is not null, then set all the `charset` parameters whose value is not a byte-case-insensitive match for encoding of that header’s value to encoding. """ The new behavior is aligned with Firefox: https://wpt.fyi/XMLHttpRequest/send-content-type-charset.htm Bug: 651750 Change-Id: Iff716e5ceece20e60bf8e69a73a980a4ea4fc6b9 Reviewed-on: https://chromium-review.googlesource.com/773942 Commit-Queue: Yutaka Hirano <yhirano@chromium.org> Reviewed-by: Takeshi Yoshino <tyoshino@chromium.org> Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Cr-Commit-Position: refs/heads/master@{#518203}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .