about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/simpletest.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simpletest.rb b/examples/simpletest.rb
index 8f78461..f668406 100644
--- a/examples/simpletest.rb
+++ b/examples/simpletest.rb
@@ -7,7 +7,7 @@ class SimpleHandler < Mongrel::HttpHandler
       response.start do |head,out|
         head["Content-Type"] = "text/html"
         results = "<html><body>Your request:<br /><pre>#{request.params.to_yaml}</pre><a href=\"/files\">View the files.</a></body></html>"
-        if not request.params["HTTP_ACCEPT_ENCODING"] == "gzip,deflate"
+        if request.params["HTTP_ACCEPT_ENCODING"] == "gzip,deflate"
           head["Content-Encoding"] = "deflate"
           # send it back deflated
           out << Zlib::Deflate.deflate(results)