diff options
Diffstat (limited to 'lib/yahns/http_response.rb')
-rw-r--r-- | lib/yahns/http_response.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yahns/http_response.rb b/lib/yahns/http_response.rb index 99bf664..57910b0 100644 --- a/lib/yahns/http_response.rb +++ b/lib/yahns/http_response.rb @@ -1,6 +1,7 @@ # -*- encoding: binary -*- # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net> # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require_relative 'stream_file' require_relative 'wbuf_str' @@ -134,7 +135,7 @@ module Yahns::HttpResponse # :nodoc: code = status.to_i msg = Rack::Utils::HTTP_STATUS_CODES[code] buf = "#{response_start}#{msg ? %Q(#{code} #{msg}) : status}\r\n" \ - "Date: #{httpdate}\r\n" + "Date: #{httpdate}\r\n".dup headers.each do |key, value| case key when %r{\ADate\z}i |