* 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
This commit is contained in:
parent
fe8002b17b
commit
a83f125c31
13
ChangeLog
13
ChangeLog
@ -1,7 +1,12 @@
|
||||
Fri Jun 3 09:27:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
|
||||
is path-rootless form. Bug #4759
|
||||
|
||||
Thu Jun 2 23:51:03 2011 James Edward Gray II <jeg2@ruby-lang.org>
|
||||
|
||||
* lib/csv.rb: Improve the line ending detection algorithm
|
||||
(patch by Alexey).
|
||||
* lib/csv.rb: Improve the line ending detection algorithm
|
||||
patch by Alexey).
|
||||
|
||||
Thu Jun 2 20:05:57 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
@ -439,8 +444,8 @@ Mon May 23 09:45:26 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
||||
Mon May 23 10:01:02 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
|
||||
|
||||
* ext/openssl/ossl_asn1.c: Do not parse zero-tagged values as EOC. Do
|
||||
not let current length become negative for infinite length constructed
|
||||
values. Support constructed values of length zero. Added tests.
|
||||
not let current length become negative for infinite length constructed
|
||||
values. Support constructed values of length zero. Added tests.
|
||||
|
||||
Mon May 23 09:19:53 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
|
@ -94,7 +94,7 @@ module URI
|
||||
#
|
||||
def request_uri
|
||||
r = path_query
|
||||
if r[0] != ?/
|
||||
if r && r[0] != ?/
|
||||
r = '/' + r
|
||||
end
|
||||
|
||||
|
@ -47,6 +47,7 @@ class TestHTTP < Test::Unit::TestCase
|
||||
assert_equal('/?abc=def', URI.parse('http://a.b.c/?abc=def').request_uri)
|
||||
assert_equal('/', URI.parse('http://a.b.c').request_uri)
|
||||
assert_equal('/?abc=def', URI.parse('http://a.b.c?abc=def').request_uri)
|
||||
assert_equal(nil, URI.parse('http:foo').request_uri)
|
||||
end
|
||||
|
||||
def test_select
|
||||
|
Loading…
x
Reference in New Issue
Block a user