FIX: Exclude `DELETE` methods from invalid request with payload.

Follow-up 105d560177

Our client side code is sending params as part of the request payload so
that is going to be tricky to fix.
This commit is contained in:
Guo Xiang Tan 2020-08-03 17:02:50 +08:00
parent eb61916e23
commit fe83baa9b3
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ module Middleware
@app = app
end
PAYLOAD_INVALID_REQUEST_METHODS = ["GET", "DELETE", "HEAD"]
PAYLOAD_INVALID_REQUEST_METHODS = ["GET", "HEAD"]
def call(env)
if PAYLOAD_INVALID_REQUEST_METHODS.include?(env[Rack::REQUEST_METHOD]) &&