diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-17 12:07:07 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-17 12:07:07 +0000 |
commit | 7dc51206303e03e37ade64ee5e59cd35bed5b530 (patch) | |
tree | 0e49b681819ebb0003bd7528d8e41e2d0db3bc9d /lib/net | |
parent | 3f483f7082ebe5865817f6b12d238abdcfe6e40d (diff) | |
download | ruby-7dc51206303e03e37ade64ee5e59cd35bed5b530.tar.gz |
* 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
Diffstat (limited to 'lib/net')
-rw-r--r-- | lib/net/http.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 62b951db1a..6be3a7ca2d 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 |