ruby-changes:1975
From: ko1@a...
Date: 17 Sep 2007 21:07:18 +0900
Subject: [ruby-changes:1975] aamine - Ruby:r13466 (trunk): * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil.
aamine 2007-09-17 21:07:07 +0900 (Mon, 17 Sep 2007) New Revision: 13466 Modified files: trunk/ChangeLog trunk/lib/net/http.rb Log: * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. [ruby-dev:31149] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13466&r2=13465 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/http.rb?r1=13466&r2=13465 Index: ChangeLog =================================================================== --- ChangeLog (revision 13465) +++ ChangeLog (revision 13466) @@ -1,3 +1,8 @@ +Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@l...> + + * 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@l...> * parse.y (ripper): rename event: arglist_* -> args_*. Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 13465) +++ lib/net/http.rb (revision 13466) @@ -1524,6 +1524,7 @@ @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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml