Permalink
Browse files

allow PATH_INFO to be nil

  • Loading branch information...
1 parent 77d6a62 commit fa34499e6cab2252675b1a83909b7cab01595cd4 @josh josh committed Apr 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/openid.rb
View
@@ -170,7 +170,7 @@ def sanitize_query_string(env)
Rack::Utils.build_query(env["rack.request.query_hash"])
qs = env["QUERY_STRING"]
- request_uri = env["PATH_INFO"].dup
+ request_uri = (env["PATH_INFO"] || "").dup
request_uri << "?" + qs unless qs == ""
env["REQUEST_URI"] = request_uri
end

0 comments on commit fa34499

Please sign in to comment.