lib/yahns/rack.rb in yahns-1.11.0 vs lib/yahns/rack.rb in yahns-1.12.0
- old
+ new
@@ -1,8 +1,9 @@
# -*- 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)
+# Copyright (C) 2013-2016 all contributors <yahns-public@yhbt.net>
+# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
+# frozen_string_literal: true
require 'rack'
class Yahns::Rack # :nodoc:
attr_reader :preload
# enforce a single instance for the identical config.ru
@@ -60,13 +61,13 @@
"rack.multiprocess" => true,
"rack.multithread" => true,
"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
def app_after_fork
build_app! unless @preload