Skip to content

Commit

Permalink
Add TRACE to SAFE_METHODS as per conversation in #168
Browse files Browse the repository at this point in the history
  /cc @tmornini @brandondees

  Related:
    - #168
  • Loading branch information
snuggs committed Jun 6, 2018
1 parent 0f666a3 commit ea120ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource/index.test
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const
.filter (method => method !== 'CONNECT')
.filter (method => method !== 'OPTIONS') // cors?

, SAFE_METHODS = ['OPTIONS', ... DEFAULT_METHODS ]
, SAFE_METHODS = ['OPTIONS', 'TRACE', ... DEFAULT_METHODS ]

, UNSAFE_METHODS = METHODS.filter
(method => !!! SAFE_METHODS.includes (method))
Expand Down

0 comments on commit ea120ff

Please sign in to comment.