Commit 01f1f6a9 authored by Jeremy Roman's avatar Jeremy Roman Committed by Commit Bot

Use ASCII case folding for encoding type.

Per spec, this should use ASCII, not Unicode, case folding:
  https://html.spec.whatwg.org/#enumerated-attribute

Bug: 627682
Change-Id: I2e11153c3c391fd2a8e720b28d2412da59795c12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575085Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#652654}
parent afc77d66
......@@ -168,9 +168,9 @@ class PLATFORM_EXPORT EncodedFormData : public RefCounted<EncodedFormData> {
}
static EncodingType ParseEncodingType(const String& type) {
if (DeprecatedEqualIgnoringCase(type, "text/plain"))
if (EqualIgnoringASCIICase(type, "text/plain"))
return kTextPlain;
if (DeprecatedEqualIgnoringCase(type, "multipart/form-data"))
if (EqualIgnoringASCIICase(type, "multipart/form-data"))
return kMultipartFormData;
return kFormURLEncoded;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment