aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-29 10:28:39 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-29 10:28:39 +0000
commit784360a978ab51dbf6515d97abcc67465782ca5e (patch)
tree026e268dc9bb7802f1369f992058b4d848726319 /lib
parent7a987b9bcd802ce9ad7424924def3075c26b0553 (diff)
downloadruby-784360a978ab51dbf6515d97abcc67465782ca5e.tar.gz
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 90843576ba..75dca46317 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1094,7 +1094,7 @@ module Net # :nodoc:
@method = m
@request_has_body = reqbody
@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
@header = {}