Skip to content

Commit

Permalink
allow PATH_INFO to be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Apr 9, 2010
1 parent 77d6a62 commit fa34499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/openid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa34499

Please sign in to comment.