Permalink
Browse files

defaulting nil values to blank strings

  • Loading branch information...
1 parent 2a58025 commit f1c8bd8933c497261172be2366cfcc588f9c15a5 @tenderlove committed Sep 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/phuby/php_handler.rb
View
2 lib/phuby/php_handler.rb
@@ -64,7 +64,7 @@ def process verb, req, res
# Set CGI server options
req.meta_vars.each do |k,v|
- rt["_SERVER"][k] = v
+ rt["_SERVER"][k] = v || ''
end
rt["_SERVER"]['REQUEST_URI'] = req.request_uri.path

0 comments on commit f1c8bd8

Please sign in to comment.