diff options
Diffstat (limited to 'lib/unicorn/http_response.rb')
-rw-r--r-- | lib/unicorn/http_response.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index 2d13863..c59ce2c 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -1,6 +1,4 @@ # -*- encoding: binary -*- -require 'time' - # Writes a Rack response to your client using the HTTP/1.1 specification. # You use it by simply doing: # @@ -25,7 +23,7 @@ module Unicorn::HttpResponse if headers buf = "HTTP/1.1 #{status}\r\n" \ - "Date: #{Time.now.httpdate}\r\n" \ + "Date: #{httpdate}\r\n" \ "Status: #{status}\r\n" \ "Connection: close\r\n" headers.each do |key, value| |