From 249d1c0d5c6fed80bcbea89c9d0d27edc6720edc Mon Sep 17 00:00:00 2001 From: aamine Date: Thu, 29 Jan 2004 10:28:39 +0000 Subject: * lib/net/http.rb (Request#initialize): reject only when a path is empty. [ruby-dev:22771] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/net/http.rb b/lib/net/http.rb index 90843576b..75dca4631 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 = {} -- cgit