diff options
Diffstat (limited to 'lib/yahns/rack.rb')
-rw-r--r-- | lib/yahns/rack.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/yahns/rack.rb b/lib/yahns/rack.rb index 3ec3582..a2af3b3 100644 --- a/lib/yahns/rack.rb +++ b/lib/yahns/rack.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 'rack' class Yahns::Rack # :nodoc: attr_reader :preload @@ -62,10 +63,10 @@ class Yahns::Rack # :nodoc: "rack.run_once" => false, "rack.hijack?" => true, "rack.version" => [ 1, 2 ], - "SCRIPT_NAME" => "", + "SCRIPT_NAME" => ''.dup, # this is not in the Rack spec, but some apps may rely on it - "SERVER_SOFTWARE" => "yahns" + "SERVER_SOFTWARE" => 'yahns'.dup } end |