summaryrefslogtreecommitdiff
path: root/lib/uri/http.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-03 00:32:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-03 00:32:25 +0000
commita83f125c3141af17f0426d01e264d684fd60e317 (patch)
treeaba91c95e4a7d888b25c34e61142a98f620b84d6 /lib/uri/http.rb
parentfe8002b17bb232b443a1dd6469318527db5b690e (diff)
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
is path-rootless form. Bug #4759 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/http.rb')
-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 3b108a48789..3b034057658 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