<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -48,16 +48,20 @@ module Merb
     HTTP_X_FORWARDED_FOR     = &quot;HTTP_X_FORWARDED_FOR&quot;.freeze
     HTTP_IF_MODIFIED_SINCE   = &quot;HTTP_IF_MODIFIED_SINCE&quot;.freeze
     HTTP_IF_NONE_MATCH       = &quot;HTTP_IF_NONE_MATCH&quot;.freeze
+    HTTP_CONTENT_TYPE        = &quot;HTTP_CONTENT_TYPE&quot;.freeze
+    HTTP_CONTENT_LENGTH      = &quot;HTTP_CONTENT_LENGTH&quot;.freeze
     UPLOAD_ID                = &quot;upload_id&quot;.freeze
     PATH_INFO                = &quot;PATH_INFO&quot;.freeze
     SCRIPT_NAME              = &quot;SCRIPT_NAME&quot;.freeze
     REQUEST_URI              = &quot;REQUEST_URI&quot;.freeze
     REQUEST_PATH             = &quot;REQUEST_PATH&quot;.freeze
+    REQUEST_METHOD           = &quot;REQUEST_METHOD&quot;.freeze
     REMOTE_ADDR              = &quot;REMOTE_ADDR&quot;.freeze
     BREAK_TAG                = &quot;&lt;br/&gt;&quot;.freeze
     EMPTY_STRING             = &quot;&quot;.freeze
     NEWLINE                  = &quot;\n&quot;.freeze
     DOUBLE_NEWLINE           = &quot;\n\n&quot;.freeze
     LOCATION                 = &quot;Location&quot;.freeze
+    TEXT_SLASH_HTML          = &quot;text/html&quot;.freeze
   end
 end</diff>
      <filename>lib/merb-core/constants.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@ module Merb
         begin
           rack_response = ::Merb::Dispatcher.handle(Merb::Request.new(env))
         rescue Object =&gt; e
-          return [500, {Merb::Const::CONTENT_TYPE =&gt; &quot;text/html&quot;}, e.message + Merb::Const::BREAK_TAG + e.backtrace.join(Merb::Const::BREAK_TAG)]
+          return [500, {Merb::Const::CONTENT_TYPE =&gt; Merb::Const::TEXT_SLASH_HTML}, e.message + Merb::Const::BREAK_TAG + e.backtrace.join(Merb::Const::BREAK_TAG)]
         end
         Merb.logger.info Merb::Const::DOUBLE_NEWLINE
         Merb.logger.flush</diff>
      <filename>lib/merb-core/rack/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -54,10 +54,10 @@ module Merb
         # response&lt;HTTPResponse&gt;:: The response object to write response to.
         def process(request, response)
           env = {}.replace(request.params)
-          env.delete &quot;HTTP_CONTENT_TYPE&quot;
-          env.delete &quot;HTTP_CONTENT_LENGTH&quot;
+          env.delete Merb::Const::HTTP_CONTENT_TYPE
+          env.delete Merb::Const::HTTP_CONTENT_LENGTH
   
-          env[&quot;SCRIPT_NAME&quot;] = &quot;&quot;  if env[&quot;SCRIPT_NAME&quot;] == &quot;/&quot;
+          env[Merb::Const::SCRIPT_NAME] = Merb::Const::EMPTY_STRING if env[Merb::Const::SCRIPT_NAME] == Merb::Const::SLASH
   
           env.update({&quot;rack.version&quot; =&gt; [0,1],
                        &quot;rack.input&quot; =&gt; request.body || StringIO.new(&quot;&quot;),
@@ -69,8 +69,8 @@ module Merb
   
                        &quot;rack.url_scheme&quot; =&gt; &quot;http&quot;
                      })
-          env[&quot;QUERY_STRING&quot;] ||= &quot;&quot;
-          env.delete &quot;PATH_INFO&quot;  if env[&quot;PATH_INFO&quot;] == &quot;&quot;
+          env[Merb::Const::QUERY_STRING] ||= &quot;&quot;
+          env.delete Merb::Const::PATH_INFO  if env[Merb::Const::PATH_INFO] == Merb::Const::EMPTY_STRING
   
           status, headers, body = @app.call(env)
   
@@ -93,4 +93,4 @@ module Merb
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/merb-core/rack/handler/mongrel.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ module Merb
 
         if document_not_modified?(env, headers)
           status = 304
-          body = &quot;&quot;
+          body = Merb::Const::EMPTY_STRING
           # set Date header using RFC1123 date format as specified by HTTP
           # RFC2616 section 3.3.1.
         end</diff>
      <filename>lib/merb-core/rack/middleware/conditional_get.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,12 +20,12 @@ module Merb
       def strip_path_prefix(env)
         ['PATH_INFO', 'REQUEST_URI'].each do |path_key|
           if env[path_key] =~ @path_prefix
-            env[path_key].sub!(@path_prefix, '')
-            env[path_key] = '/' if env[path_key].empty?
+            env[path_key].sub!(@path_prefix, Merb::Const::EMPTY_STRING)
+            env[path_key] = Merb::Const::SLASH if env[path_key].empty?
           end
         end
       end
       
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/merb-core/rack/middleware/path_prefix.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,16 +8,20 @@ module Merb
       end
       
       def call(env)        
-        path = env['PATH_INFO'] ? env['PATH_INFO'].chomp('/') : &quot;&quot;
+        path = if env[Merb::Const::PATH_INFO]
+                 env[Merb::Const::PATH_INFO].chomp(Merb::Const::SLASH)
+               else
+                 Merb::Const::EMPTY_STRING
+               end
         cached_path = (path.empty? ? 'index' : path) + '.html'
         
-        if file_exist?(path) &amp;&amp; env['REQUEST_METHOD'] =~ /GET|HEAD/ # Serve the file if it's there and the request method is GET or HEAD
+        if file_exist?(path) &amp;&amp; env[Merb::Const::REQUEST_METHOD] =~ /GET|HEAD/ # Serve the file if it's there and the request method is GET or HEAD
           serve_static(env)
-        elsif file_exist?(cached_path) &amp;&amp; env['REQUEST_METHOD'] =~ /GET|HEAD/ # Serve the page cache if it's there and the request method is GET or HEAD
-          env['PATH_INFO'] = cached_path
+        elsif file_exist?(cached_path) &amp;&amp; env[Merb::Const::REQUEST_METHOD] =~ /GET|HEAD/ # Serve the page cache if it's there and the request method is GET or HEAD
+          env[Merb::Const::PATH_INFO] = cached_path
           serve_static(env)
         elsif path =~ /favicon\.ico/
-          return [404, {&quot;Content-Type&quot;=&gt;&quot;text/html&quot;}, &quot;404 Not Found.&quot;]
+          return [404, { Merb::Const::CONTENT_TYPE =&gt; Merb::Const::TEXT_SLASH_HTML }, &quot;404 Not Found.&quot;]
         else
           @app.call(env)
         end
@@ -36,10 +40,10 @@ module Merb
         # ==== Parameters
         # env&lt;Hash&gt;:: Environment variables to pass on to the server.
         def serve_static(env)
-          env[&quot;PATH_INFO&quot;] = ::Merb::Request.unescape(env[&quot;PATH_INFO&quot;])        
+          env[Merb::Const::PATH_INFO] = ::Merb::Request.unescape(env[Merb::Const::PATH_INFO])
           @static_server.call(env)
         end
       
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/merb-core/rack/middleware/static.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ee43bd5f870bb9ad822bdade58cd970fc088b975</id>
    </parent>
  </parents>
  <author>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/11d19c269a029403039b16866aaa8d6bb1a366ff</url>
  <id>11d19c269a029403039b16866aaa8d6bb1a366ff</id>
  <committed-date>2008-10-12T09:23:39-07:00</committed-date>
  <authored-date>2008-10-12T09:23:39-07:00</authored-date>
  <message>Use frozen constants on the 'hot path' if possible.</message>
  <tree>1cd2a6b3302990b1ec00d57e4becbf4db36b8422</tree>
  <committer>
    <name>Michael S. Klishin</name>
    <email>michael@novemberain.com</email>
  </committer>
</commit>
