summary refs log tree commit homepage
diff options
context:
space:
mode:
-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"] == "/"