Compare commits
5 commits
9d7d72377e
...
845ccb10ab
Author | SHA1 | Date | |
---|---|---|---|
845ccb10ab | |||
61af3854cb | |||
aa378b7a90 | |||
2f9f859be9 | |||
19bc38b881 |
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class HTTP::Server::Response
|
||||||
class Output
|
class Output
|
||||||
def close
|
def close
|
||||||
# ameba:disable Style/NegatedConditionsInUnless
|
# ameba:disable Style/NegatedConditionsInUnless
|
||||||
unless response.wrote_headers? && !response.headers.has_key?("Content-Range") && !response.headers.has_key?("Content-Length")
|
if !response.wrote_headers? && !response.headers.has_key?("Content-Range") && !response.headers.has_key?("Content-Length")
|
||||||
response.content_length = @out_count
|
response.content_length = @out_count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue