about summary refs log tree commit homepage
path: root/lib/mongrel/handlers.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-29 20:50:28 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-05-29 20:50:28 +0000
commitd5d3bc9d8292463376b44eb700b5cbab955e940a (patch)
treee72af7c654d4483b4c86f1987bc5b70576619ea3 /lib/mongrel/handlers.rb
parentc535a5abca899492d18bc2e0b8287d62595e45d4 (diff)
downloadunicorn-d5d3bc9d8292463376b44eb700b5cbab955e940a.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@217 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/handlers.rb')
-rw-r--r--lib/mongrel/handlers.rb38
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/mongrel/handlers.rb b/lib/mongrel/handlers.rb
index 99aaeae..1d0cd37 100644
--- a/lib/mongrel/handlers.rb
+++ b/lib/mongrel/handlers.rb
@@ -275,7 +275,7 @@ module Mongrel
   # look at the client's allowed response types and then gzip
   # compress anything that is going out.
   #
-  # Valid option is :always_deflate => false which tells the handler to
+  # Valid option is :always_deflate => false which tells the handler to
   # deflate everything even if the client can't handle it.
   class DeflateFilter < HttpHandler
     HTTP_ACCEPT_ENCODING = "HTTP_ACCEPT_ENCODING"
@@ -363,28 +363,28 @@ module Mongrel
 
     def describe_listener
       results = ""
-        results << "<h1>Listener #{listener.host}:#{listener.port}</h1>"
-        results << table("settings", [
-                         ["host",listener.host],
-                         ["port",listener.port],
-                         ["timeout",listener.timeout],
-                         ["workers max",listener.num_processors],
-        ])
-
-        if @stats
-          results << "<h2>Statistics</h2><p>N means the number of samples, pay attention to MEAN, SD, MIN and MAX."
-          results << "<pre>#{@stats.dump}</pre>"
-        end
+      results << "<h1>Listener #{listener.host}:#{listener.port}</h1>"
+      results << table("settings", [
+                       ["host",listener.host],
+                       ["port",listener.port],
+                       ["timeout",listener.timeout],
+                       ["workers max",listener.num_processors],
+      ])
+
+      if @stats
+        results << "<h2>Statistics</h2><p>N means the number of samples, pay attention to MEAN, SD, MIN and MAX."
+        results << "<pre>#{@stats.dump}</pre>"
+      end
 
-        results << "<h2>Registered Handlers</h2>"
-        uris = listener.classifier.handler_map
-        results << table("handlers", uris.map {|uri,handlers|
-          [uri,
+      results << "<h2>Registered Handlers</h2>"
+      uris = listener.classifier.handler_map
+      results << table("handlers", uris.map {|uri,handlers|
+        [uri,
             "<pre>" +
             handlers.map {|h| h.class.to_s }.join("\n") +
             "</pre>"
-          ]
-        })
+        ]
+      })
 
       results
     end