Skip to content

Commit

Permalink
Reuse Rack::Utils::STATUS_WITH_NO_ENTITY_BODY.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 7, 2020
1 parent 8c62821 commit 5dfa87d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/rack/response.rb
Expand Up @@ -26,11 +26,7 @@ class Response
alias headers header

CHUNKED = 'chunked'
STATUS_WITH_NO_ENTITY_BODY = {
204 => true,
205 => true,
304 => true,
}.freeze
STATUS_WITH_NO_ENTITY_BODY = Utils::STATUS_WITH_NO_ENTITY_BODY

def initialize(body = nil, status = 200, header = {})
@status = status.to_i
Expand Down

0 comments on commit 5dfa87d

Please sign in to comment.