about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-16 16:56:22 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-16 16:56:22 -0700
commit04c7fc37ab4fb2fbaa1b4a2570871713cf9d1319 (patch)
tree5a4baecb4b9ee95dd7ca7970141ffe48168e61a2 /lib/unicorn/http_request.rb
parent045f6d741020d4a77bd68bd80891a97782d54850 (diff)
downloadunicorn-04c7fc37ab4fb2fbaa1b4a2570871713cf9d1319.tar.gz
This gives applications more rope to play with in case they have
any reasons for changing some values of the default constants.

Freezing strings for Hash assignments still speeds up MRI, so
we'll keep on doing that for now (and as long as MRI supports
frozen strings, I expect them to always be faster for Hashes
though I'd be very happy to be proven wrong...)
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index 400a63e..2d191d7 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -12,15 +12,15 @@ module Unicorn
       "rack.multiprocess" => true,
       "rack.multithread" => false,
       "rack.run_once" => false,
-      "rack.version" => [1, 0].freeze,
-      "SCRIPT_NAME" => "".freeze,
+      "rack.version" => [1, 0],
+      "SCRIPT_NAME" => "",
 
       # this is not in the Rack spec, but some apps may rely on it
-      "SERVER_SOFTWARE" => "Unicorn #{Const::UNICORN_VERSION}".freeze
+      "SERVER_SOFTWARE" => "Unicorn #{Const::UNICORN_VERSION}"
     }
 
     NULL_IO = StringIO.new(Z)
-    LOCALHOST = '127.0.0.1'.freeze
+    LOCALHOST = '127.0.0.1'
 
     # Being explicitly single-threaded, we have certain advantages in
     # not having to worry about variables being clobbered :)