anchor.diff:      <cffunction
           name="getMethod"
           returnType="string">
  -        <cfif getEnv().request_method EQ constants.HTTP_POST>
  -            <cfif valueExists(constants.METHOD_OVERRIDE_PARAM)>
  -                <cfset var method = UCase(Trim(getValue(constants.METHOD_OVERRIDE_PARAM)))>
  -            <cfelse>
  -                <cfif StructKeyExists(getHeaders(), constants.METHOD_OVERRIDE_HEADER)>
  -                    <cfset var method = UCase(Trim(getHeaders()[constants.METHOD_OVERRIDE_HEADER]))>
  -                </cfif>
  -            </cfif>
  -
  -            <cfif IsDefined("local.method") and ListFind(constants.HTTP_METHODS, method)>
  -                <cfreturn method>
  +        <cfset var method = getEnv().request_method>
  +
  +        <cfif method eq constants.HTTP_POST>
  +            <cfif valueExists(constants.METHOD_OVERRIDE_PARAM) and
  +                isValidHTTPMethod(getValue(constants.METHOD_OVERRIDE_PARAM))>
  +                <cfset method = getValue(constants.METHOD_OVERRIDE_PARAM)>
  +            <cfelseif headerExists(constants.METHOD_OVERRIDE_HEADER) and
  +                isValidHTTPMethod(getHeader(constants.METHOD_OVERRIDE_HEADER))>
  +                <cfset method = getHeader(constants.METHOD_OVERRIDE_HEADER)>
               </cfif>
           </cfif>
   
  -        <cfreturn getEnv().request_method>
  +        <cfreturn ucase(trim(method))>
  +    </cffunction>
  +
  +
  +    <cffunction
  +        name="isValidHTTPMethod"
  +        returnType="boolean">
  +        <cfargument
  +            name="verb"
  +            type="string"
  +            required="yes">
  +        <cfreturn ListFindNoCase(constants.HTTP_METHODS, trim(verb))>
       </cffunction>
   
   
  
positive.code: 
  
      <cffunction
          name="setRequestData"
          returnType="void">
          <cfargument
  
negative.code:     <cfparam name="instance" default="#StructNew()#">
      <cfparam name="constants" default="#StructNew()#">
      <cfset constants.HTTP_METHODS = "GET,POST,PUT,DELETE">
      <cfset constants.HTTP_GET = "GET">
      <cfset constants.HTTP_POST = "POST">
      <cfset constants.HTTP_PUT = "PUT">
      <cfset constants.HTTP_DELETE = "DELETE">
      <cfset constants.METHOD_OVERRIDE_PARAM = "_method">
      <cfset constants.METHOD_OVERRIDE_HEADER = "HTTP_X_HTTP_METHOD_OVERRIDE">
  
  