Skip to content

Commit

Permalink
use @status instead of status.to_i
Browse files Browse the repository at this point in the history
  • Loading branch information
ceclinux authored and jeremyevans committed Sep 25, 2020
1 parent 2d3f606 commit 5ce5b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def chunked?
# @return [Array] a 3-tuple suitable of `[status, headers, body]`
# which is suitable to be returned from the middleware `#call(env)` method.
def finish(&block)
if STATUS_WITH_NO_ENTITY_BODY[status.to_i]
if STATUS_WITH_NO_ENTITY_BODY[@status]
delete_header CONTENT_TYPE
delete_header CONTENT_LENGTH
close
Expand Down

0 comments on commit 5ce5b2c

Please sign in to comment.