about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEvan Weaver <eweaver@twitter.com>2009-02-01 17:04:06 -0800
committerEvan Weaver <eweaver@twitter.com>2009-02-01 17:04:06 -0800
commit9f9a9d488ed32a2891dc3dd7d50a17a16357042d (patch)
tree415823c1f00817c67b7ba24473d64d65672d3e16
parentbddf65ad297f58e1aa6074777bd434df0100b20e (diff)
parent77123838e7a6110e684353aea3443b2bffe7d731 (diff)
-rw-r--r--lib/mongrel/http_request.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mongrel/http_request.rb b/lib/mongrel/http_request.rb
index 28496cd..86c0e15 100644
--- a/lib/mongrel/http_request.rb
+++ b/lib/mongrel/http_request.rb
@@ -46,6 +46,7 @@ module Mongrel
     # Copied directly from Rack's old Mongrel handler.
     def env
       env = params.clone
+      env["QUERY_STRING"] ||= ''
       env.delete "HTTP_CONTENT_TYPE"
       env.delete "HTTP_CONTENT_LENGTH"
       env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/"