File tree Expand file tree Collapse file tree
src/WebApi.OutputCache.V2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ public override void OnActionExecuted(HttpActionExecutedContext actionExecutedCo
2020 if ( actionExecutedContext . Response != null && ! actionExecutedContext . Response . IsSuccessStatusCode ) return ;
2121 if ( actionExecutedContext . ActionContext . Request . Method != HttpMethod . Post &&
2222 actionExecutedContext . ActionContext . Request . Method != HttpMethod . Put &&
23- actionExecutedContext . ActionContext . Request . Method != HttpMethod . Delete ) return ;
23+ actionExecutedContext . ActionContext . Request . Method != HttpMethod . Delete &&
24+ actionExecutedContext . ActionContext . Request . Method . Method . ToLower ( ) != "patch" &&
25+ actionExecutedContext . ActionContext . Request . Method . Method . ToLower ( ) != "merge" ) return ;
2426
2527 var controller = actionExecutedContext . ActionContext . ControllerContext . ControllerDescriptor ;
2628 var actions = FindAllGetMethods ( controller . ControllerType , TryMatchType ? actionExecutedContext . ActionContext . ActionDescriptor . GetParameters ( ) : null ) ;
You can’t perform that action at this time.
0 commit comments