about summary refs log tree commit homepage
path: root/lib/raindrops/middleware.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-02 21:35:30 +0000
committerEric Wong <e@80x24.org>2016-02-02 21:35:30 +0000
commit606205cb7b3acb0d0c61cdd3dbf65b908f2534c0 (patch)
tree182f19b70fbde4e423e6731ef30e2e50cf80a8ac /lib/raindrops/middleware.rb
parent0270985028c7bec062096e596e4786af89bd136b (diff)
downloadraindrops-606205cb7b3acb0d0c61cdd3dbf65b908f2534c0.tar.gz
Since Ruby 2.2, frozen string literals are implied for Hash#[]
lookups.  Constant lookups have inline caching since Ruby 1.9
(from YARV).
Diffstat (limited to 'lib/raindrops/middleware.rb')
-rw-r--r--lib/raindrops/middleware.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/raindrops/middleware.rb b/lib/raindrops/middleware.rb
index 7c647ec..bf16924 100644
--- a/lib/raindrops/middleware.rb
+++ b/lib/raindrops/middleware.rb
@@ -81,7 +81,6 @@ class Raindrops::Middleware
   end
 
   # :stopdoc:
-  PATH_INFO = "PATH_INFO"
   require "raindrops/middleware/proxy"
   # :startdoc:
 
@@ -111,7 +110,7 @@ class Raindrops::Middleware
 
   # standard Rack endpoint
   def call(env) # :nodoc:
-    env[PATH_INFO] == @path and return stats_response
+    env['PATH_INFO'] == @path and return stats_response
     begin
       @stats.incr_calling