rack_response
should use the status it's given
This commit is contained in:
parent
89e61f0133
commit
c33f51a894
@ -402,7 +402,7 @@ def to_ary
|
||||
end
|
||||
|
||||
def rack_response(status, header)
|
||||
if NO_CONTENT_CODES.include?(@status)
|
||||
if NO_CONTENT_CODES.include?(status)
|
||||
header.delete CONTENT_TYPE
|
||||
header.delete 'Content-Length'
|
||||
[status, header, []]
|
||||
|
Loading…
Reference in New Issue
Block a user