Skip to content

Commit

Permalink
Add some missed methods which should be normalized as uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
aleen42 authored and JakeChampion committed Apr 1, 2023
1 parent fb5b0cf commit a43b628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.js
Expand Up @@ -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()
Expand Down

0 comments on commit a43b628

Please sign in to comment.