We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have called PATCH method, but wslite executed POST method. Is it bug or feature? Thanks.
Response patch(Map params=[:], Closure content=null) { Map newParams = new LinkedHashMap(params ?: [:]) if (newParams.headers) { newParams.headers[HTTP.X_HTTP_METHOD_OVERRIDE_HEADER] = HTTPMethod.PATCH.toString() } else { Map override = [:] override[HTTP.X_HTTP_METHOD_OVERRIDE_HEADER] = HTTPMethod.PATCH.toString() newParams['headers'] = override } return executeMethod(HTTPMethod.POST, newParams, content) }
The text was updated successfully, but these errors were encountered:
Seeing the same issue. Any word on a fix for this? Thanks!
Sorry, something went wrong.
No branches or pull requests
I have called PATCH method, but wslite executed POST method. Is it bug or feature? Thanks.
Response patch(Map params=[:], Closure content=null) {
Map newParams = new LinkedHashMap(params ?: [:])
if (newParams.headers) {
newParams.headers[HTTP.X_HTTP_METHOD_OVERRIDE_HEADER] = HTTPMethod.PATCH.toString()
} else {
Map override = [:]
override[HTTP.X_HTTP_METHOD_OVERRIDE_HEADER] = HTTPMethod.PATCH.toString()
newParams['headers'] = override
}
return executeMethod(HTTPMethod.POST, newParams, content)
}
The text was updated successfully, but these errors were encountered: