From: John Napiorkowski Date: Wed, 6 Mar 2013 13:53:05 +0000 (-0500) Subject: added another common override to http methods X-Git-Tag: 5.90030~24 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=db87b0535ed77ffa5a125abf9bf8beb5d1bd0cb3 added another common override to http methods --- diff --git a/lib/Catalyst/ActionRole/HTTPMethods.pm b/lib/Catalyst/ActionRole/HTTPMethods.pm index 809eaa0..8d9033d 100644 --- a/lib/Catalyst/ActionRole/HTTPMethods.pm +++ b/lib/Catalyst/ActionRole/HTTPMethods.pm @@ -17,6 +17,7 @@ sub _normalize_expected_http_method { return $req->header('X-HTTP-Method') || $req->header('X-HTTP-Method-Override') || $req->header('X-METHOD-OVERRIDE') || + $req->header('x-tunneled-method') || $req->method; } @@ -87,6 +88,8 @@ work well with existing systems and common client side tools. =item X-METHOD-OVERRIDE (IBM) +=item x-tunneled-method (used in many other similar systems on CPAN + =back Please note the insanity of overriding a GET request with a DELETE override...