* lib/net/http.rb (Request#initialize): reject only when a path is empty. [ruby-dev:22771]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a987b9bcd
commit
784360a978
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jan 29 19:28:16 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/net/http.rb (Request#initialize): reject only when a path is
|
||||||
|
empty. [ruby-dev:22771]
|
||||||
|
|
||||||
Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
|
* dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
|
||||||
|
@ -1094,7 +1094,7 @@ module Net # :nodoc:
|
|||||||
@method = m
|
@method = m
|
||||||
@request_has_body = reqbody
|
@request_has_body = reqbody
|
||||||
@response_has_body = resbody
|
@response_has_body = resbody
|
||||||
raise ArgumentError, "invalid request path: #{path.inspect}" unless %r<\A/> =~ path
|
raise ArgumentError, "HTTP request path is empty" if path.empty?
|
||||||
@path = path
|
@path = path
|
||||||
|
|
||||||
@header = {}
|
@header = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user