Created
May 26, 2016 17:31
-
-
Save elpete/1fc1973e6b93bcd5dfc6e6c6c835395c to your computer and use it in GitHub Desktop.
Simple Request Context Decorator to spoof the HTTP method with hidden _method fields.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends='coldbox.system.web.context.RequestContextDecorator' { | |
string function getHTTPMethod() { | |
return getRequestContext().getValue('_method', cgi.REQUEST_METHOD); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment