From a43b6283833c403230bb1a5238e2d7ac435c52da Mon Sep 17 00:00:00 2001 From: Aleen Date: Fri, 1 Apr 2022 21:46:03 +0800 Subject: [PATCH] Add some missed methods which should be normalized as uppercase --- fetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.js b/fetch.js index ce474a03..a2cbe7ad 100644 --- a/fetch.js +++ b/fetch.js @@ -329,7 +329,7 @@ function Body() { } // HTTP methods whose capitalization should be normalized -var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] +var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'] function normalizeMethod(method) { var upcased = method.toUpperCase()