1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. [ruby-dev:31149]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2007-09-17 12:07:07 +00:00
parent 3f483f7082
commit 7dc5120630
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
not nil. [ruby-dev:31149]
Mon Sep 17 21:00:51 2007 Minero Aoki <aamine@loveruby.net>
* parse.y (ripper): rename event: arglist_* -> args_*.

View file

@ -1524,6 +1524,7 @@ module Net #:nodoc:
@method = m
@request_has_body = reqbody
@response_has_body = resbody
raise ArgumentError, "no HTTP request path given" unless path
raise ArgumentError, "HTTP request path is empty" if path.empty?
@path = path
initialize_http_header initheader