about summary refs log tree commit homepage
path: root/test/test_clogger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_clogger.rb')
-rw-r--r--test/test_clogger.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_clogger.rb b/test/test_clogger.rb
index 5e85e15..9fd6d05 100644
--- a/test/test_clogger.rb
+++ b/test/test_clogger.rb
@@ -392,4 +392,14 @@ class TestClogger < Test::Unit::TestCase
     assert_raise(TypeError) { cl.call(@req) }
   end
 
+  def test_http_09_request
+    str = StringIO.new
+    app = lambda { |env| [302, [ %w(a) ], []] }
+    cl = Clogger.new(app, :logger => str, :format => '$request')
+    req = @req.dup
+    req.delete 'HTTP_VERSION'
+    cl.call(req)
+    assert_equal "GET /hello?goodbye=true\n", str.string
+  end
+
 end