about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-11-14 02:47:22 +0000
committerEric Wong <e@80x24.org>2015-11-18 02:20:21 +0000
commit9f9f6a2f76e2dd0cd2ab6e6b4b591f93b21a6ddc (patch)
tree207c1be9cba832b652725c87285088332eefa204 /lib
parent5d1e2f0ada7d63ad539bac7597d27ef2c4de2cdd (diff)
downloadrainbows-9f9f6a2f76e2dd0cd2ab6e6b4b591f93b21a6ddc.tar.gz
Whatever compatibility reasons which existed in 2009 likely do not exist
now.  Other servers (e.g. thin, puma) seem to work alright without it,
so there's no reason to waste precious bytes.
Diffstat (limited to 'lib')
-rw-r--r--lib/rainbows/response.rb3
-rw-r--r--lib/rainbows/stream_response_epoll.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb
index b7b6aa8..db14ee4 100644
--- a/lib/rainbows/response.rb
+++ b/lib/rainbows/response.rb
@@ -42,8 +42,7 @@ module Rainbows::Response
     hijack = nil
     status = CODES[status.to_i] || status
     buf = "HTTP/1.1 #{status}\r\n" \
-          "Date: #{httpdate}\r\n" \
-          "Status: #{status}\r\n"
+          "Date: #{httpdate}\r\n"
     headers.each do |key, value|
       case key
       when %r{\A(?:Date\z|Connection\z)}i
diff --git a/lib/rainbows/stream_response_epoll.rb b/lib/rainbows/stream_response_epoll.rb
index 33d7386..c0d90a4 100644
--- a/lib/rainbows/stream_response_epoll.rb
+++ b/lib/rainbows/stream_response_epoll.rb
@@ -31,7 +31,7 @@ module Rainbows::StreamResponseEpoll
     if headers
       # don't set extra headers here, this is only intended for
       # consuming by nginx.
-      buf = "HTTP/1.0 #{status}\r\nStatus: #{status}\r\n"
+      buf = "HTTP/1.0 #{status}\r\n"
       headers.each do |key, value|
         case key
         when "rack.hijack"