summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-17 12:07:07 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-09-17 12:07:07 +0000
commit8ced00fab5e63610bcc990bee949bb7f7008b5b3 (patch)
tree0e49b681819ebb0003bd7528d8e41e2d0db3bc9d
parent61bee0e7a104cf93edab0acd25564b7b1d8c1b05 (diff)
downloadruby-8ced00fab5e63610bcc990bee949bb7f7008b5b3.tar.gz
ruby-8ced00fab5e63610bcc990bee949bb7f7008b5b3.tar.xz
ruby-8ced00fab5e63610bcc990bee949bb7f7008b5b3.zip
* lib/net/http.rb (HTTP::GenericRequest#initialize): check path is not nil. [ruby-dev:31149]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/http.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 48ef4fc4a..f45b5b109 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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_*.
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 62b951db1..6be3a7ca2 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -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