about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:42 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:25 -0700
commit78c076ebb118a8312a2912dddb8a93d3ea80fa99 (patch)
tree708cd4175f92b26e636490d0474abaf088a02ff9 /test
parentaca95eb1157eff8351320c4b2f5daa904330e904 (diff)
downloadunicorn-78c076ebb118a8312a2912dddb8a93d3ea80fa99.tar.gz
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_http_parser.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/test_http_parser.rb b/test/unit/test_http_parser.rb
index 37a539d..1f3c9d2 100644
--- a/test/unit/test_http_parser.rb
+++ b/test/unit/test_http_parser.rb
@@ -22,7 +22,7 @@ class HttpParserTest < Test::Unit::TestCase
     assert_equal '/', req['REQUEST_URI']
     assert_equal 'GET', req['REQUEST_METHOD']
     assert_nil req['FRAGMENT']
-    assert_nil req['QUERY_STRING']
+    assert_equal '', req['QUERY_STRING']
 
     parser.reset
     req.clear
@@ -40,7 +40,7 @@ class HttpParserTest < Test::Unit::TestCase
     assert_equal '/hello-world', req['REQUEST_URI']
     assert_equal 'GET', req['REQUEST_METHOD']
     assert_nil req['FRAGMENT']
-    assert_nil req['QUERY_STRING']
+    assert_equal '', req['QUERY_STRING']
   end
 
   def test_parse_strange_headers
@@ -100,7 +100,7 @@ class HttpParserTest < Test::Unit::TestCase
     assert parser.execute(req, http << "\n")
     assert_equal 'HTTP/1.1', req['SERVER_PROTOCOL']
     assert_nil req['FRAGMENT']
-    assert_nil req['QUERY_STRING']
+    assert_equal '', req['QUERY_STRING']
   end
 
   def test_absolute_uri