Index: Source/core/xml/XMLHttpRequest.cpp |
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp |
index 77fba6242f36756aa4b12327736e54949ed0660e..305774dd0cfad72816dff90796dfd41f87cea206 100644 |
--- a/Source/core/xml/XMLHttpRequest.cpp |
+++ b/Source/core/xml/XMLHttpRequest.cpp |
@@ -504,22 +504,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. |