From ea120fff3165ad75d01e34c24445fcbc1d31d802 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sat, 7 Apr 2018 09:51:11 -0400 Subject: [PATCH] Add `TRACE` to `SAFE_METHODS` as per conversation in #168 /cc @tmornini @brandondees Related: - https://github.com/devpunks/snuggsi/issues/168 --- resource/index.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/index.test b/resource/index.test index e738633dc8..f9168131bf 100644 --- a/resource/index.test +++ b/resource/index.test @@ -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))