Skip to content

Commit 14476d0

Browse files
Remove instance variables from middleware (#27245)
1 parent 62e3a47 commit 14476d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/http_method_not_allowed.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ def initialize(app)
1010

1111
def call(env)
1212
if ActionDispatch::Request::HTTP_METHODS.include?(env['REQUEST_METHOD'].upcase)
13-
@status, @headers, @response = @app.call(env)
14-
[@status, @headers, @response]
13+
@app.call(env)
1514
else
1615
Rails.logger.info("ActionController::UnknownHttpMethod: #{env['REQUEST_METHOD']}")
1716
[405, { 'Content-Type' => 'text/plain' }, ['Method Not Allowed']]

0 commit comments

Comments
 (0)