anchor.diff:          returnType="boolean">
           <cfreturn
               StructKeyExists(getEnv(), "http_x_requested_with")
  -            and (getEnv().http_x_requested_with EQ "XMLHTTPRequest")>
  +            and (getEnv().http_x_requested_with eq "XMLHTTPRequest")>
       </cffunction>
   
   
  
positive.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">
  
  
negative.code:     <cffunction
          name="getMethod"
          returnType="string">
          <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 ucase(trim(method))>
      </cffunction>
  
  
      <cffunction
          name="isValidHTTPMethod"
          returnType="boolean">
          <cfargument
              name="verb"
              type="string"
              required="yes">
          <cfreturn ListFindNoCase(constants.HTTP_METHODS, trim(verb))>
      </cffunction>
  
  
  