Skip to content

Commit 5ce5b2c

Browse files
ceclinuxjeremyevans
authored andcommittedSep 25, 2020
use @status instead of status.to_i
1 parent 2d3f606 commit 5ce5b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/rack/response.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def chunked?
7878
# @return [Array] a 3-tuple suitable of `[status, headers, body]`
7979
# which is suitable to be returned from the middleware `#call(env)` method.
8080
def finish(&block)
81-
if STATUS_WITH_NO_ENTITY_BODY[status.to_i]
81+
if STATUS_WITH_NO_ENTITY_BODY[@status]
8282
delete_header CONTENT_TYPE
8383
delete_header CONTENT_LENGTH
8484
close

0 commit comments

Comments
 (0)
Please sign in to comment.