diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-19 10:09:52 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-19 17:04:22 -0700 |
commit | 12205e29b29f844295d1794bfe10634646541f20 (patch) | |
tree | 93173038c063a4ec3c8e5e170e48ce6f7fa485cc /lib/rainbows/event_machine.rb | |
parent | 269ef624a0a722ca07a04c77d8e4e4e61413dcdd (diff) | |
download | rainbows-12205e29b29f844295d1794bfe10634646541f20.tar.gz |
Rack::File already sets the Content-Length header for us, so there's no reason to ever set this ourselves.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r-- | lib/rainbows/event_machine.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 1a5e8be..77fc962 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -133,8 +133,6 @@ module Rainbows if st.file? if headers - headers.delete('Transfer-Encoding') - headers['Content-Length'] ||= st.size.to_s headers[CONNECTION] = alive ? KEEP_ALIVE : CLOSE write(response_header(status, headers)) end |