diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-09 16:22:55 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-09 17:53:24 -0700 |
commit | b0013b043a15d77d810d5965157766c1af364db2 (patch) | |
tree | 1db783db1387facad6fbdba7e7ea1479b5789898 /lib/unicorn/http_response.rb | |
parent | f3e1cd9b7728b85f346d5588268066c9ef9d3cf3 (diff) | |
download | unicorn-b0013b043a15d77d810d5965157766c1af364db2.tar.gz |
Trying not to repeat ourselves. Unfortunately, Ruby 1.9 forces us to actually care about encodings of arbitrary byte sequences.
Diffstat (limited to 'lib/unicorn/http_response.rb')
-rw-r--r-- | lib/unicorn/http_response.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index 15df3f6..bfaa33d 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -31,7 +31,6 @@ module Unicorn # Connection: and Date: headers no matter what (if anything) our # Rack application sent us. SKIP = { 'connection' => true, 'date' => true, 'status' => true }.freeze - EMPTY = ''.freeze # :nodoc OUT = [] # :nodoc # writes the rack_response to socket as an HTTP response @@ -59,7 +58,7 @@ module Unicorn "Date: #{Time.now.httpdate}\r\n" \ "Status: #{status}\r\n" \ "Connection: close\r\n" \ - "#{OUT.join(EMPTY)}\r\n") + "#{OUT.join(Z)}\r\n") body.each { |chunk| socket.write(chunk) } socket.close # flushes and uncorks the socket immediately ensure |