| Index: Source/core/xml/XMLHttpRequest.cpp
|
| diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
|
| index 1d1c58056583a774c5898b0b6359af2fd9a9258f..b6551c9d82120d823f74dabfdc58a3bb3a8b1687 100644
|
| --- a/Source/core/xml/XMLHttpRequest.cpp
|
| +++ b/Source/core/xml/XMLHttpRequest.cpp
|
| @@ -499,22 +499,15 @@ bool XMLHttpRequest::isAllowedHTTPMethod(const String& method)
|
|
|
| AtomicString XMLHttpRequest::uppercaseKnownHTTPMethod(const AtomicString& method)
|
| {
|
| + // Valid methods per step-5 of http://xhr.spec.whatwg.org/#the-open()-method.
|
| const char* const methods[] = {
|
| - "COPY",
|
| "DELETE",
|
| "GET",
|
| "HEAD",
|
| - "INDEX",
|
| - "LOCK",
|
| - "M-POST",
|
| - "MKCOL",
|
| - "MOVE",
|
| "OPTIONS",
|
| "POST",
|
| - "PROPFIND",
|
| - "PROPPATCH",
|
| - "PUT",
|
| - "UNLOCK" };
|
| + "PUT" };
|
| +
|
| for (unsigned i = 0; i < WTF_ARRAY_LENGTH(methods); ++i) {
|
| if (equalIgnoringCase(method, methods[i])) {
|
| // Don't bother allocating a new string if it's already all uppercase.
|
|
|