summaryrefslogtreecommitdiff
path: root/lib/uri
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/http.rb b/lib/uri/http.rb
index 3b108a4878..3b03405765 100644
--- a/lib/uri/http.rb
+++ b/lib/uri/http.rb
@@ -94,7 +94,7 @@ module URI
#
def request_uri
r = path_query
- if r[0] != ?/
+ if r && r[0] != ?/
r = '/' + r
end