diff --git a/ChangeLog b/ChangeLog index 4c948a5c2e..1977768d7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 29 19:28:16 2004 Minero Aoki + + * lib/net/http.rb (Request#initialize): reject only when a path is + empty. [ruby-dev:22771] + Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto * dir.c: merge tuning from H.Yamamoto . 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 = {}