about summary refs log tree commit homepage
path: root/lib/mongrel.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-04 16:07:56 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-04 16:07:56 +0000
commit0ca765c199519f30e99bda26552905f9e4baf0b9 (patch)
tree80e7257b684f85fd503b0f66d2284addcdf58c38 /lib/mongrel.rb
parentd529c2b1f34c658842705d614722a91b23534ff5 (diff)
downloadunicorn-0ca765c199519f30e99bda26552905f9e4baf0b9.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@163 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel.rb')
-rw-r--r--lib/mongrel.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index edf8527..60932df 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -144,6 +144,8 @@ module Mongrel
     LINE_END="\r\n".freeze
     REMOTE_ADDR="REMOTE_ADDR".freeze
     HTTP_X_FORWARDED_FOR="HTTP_X_FORWARDED_FOR".freeze
+    HTTP_IF_UNMODIFIED_SINCE="HTTP_IF_UNMODIFIED_SINCE".freeze
+    HTTP_IF_NONE_MATCH="HTTP_IF_NONE_MATCH".freeze
   end
 
 
@@ -371,7 +373,7 @@ module Mongrel
             @socket.write(chunk)
           end
         end
-          end
+      end
     rescue EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF
       # ignore these since it means the client closed off early
       STDERR.puts "Client closed socket requesting file #{req}: #$!"
@@ -724,6 +726,7 @@ module Mongrel
     # or defaults:
     #
     # * :handler => Handler to use for this location.
+    # * :in_front => Rather than appending, it prepends this handler.
     def uri(location, options={})
       ops = resolve_defaults(options)
       @listener.register(location, ops[:handler], in_front=ops[:in_front])