From d85b9c8925b54589636566decc1141653765243a Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Fri, 13 Aug 2004 04:11:30 +0000 Subject: * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_range_header): fix regex for range-spec. * lib/webrick/httpservlet/filehandler.rb (WEBrick::HTTPServlet::DefaultFileHandler#make_partial_content): multipart/byteranges response was broken. * lib/xmlrpc/server.rb: refine example code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/httputils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/webrick/httputils.rb') diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb index 79ea9d1f47..bae281ca1a 100644 --- a/lib/webrick/httputils.rb +++ b/lib/webrick/httputils.rb @@ -167,7 +167,7 @@ module WEBrick case range_spec when /^(\d+)-(\d+)/ then $1.to_i .. $2.to_i when /^(\d+)-/ then $1.to_i .. -1 - when /^(\d+)/ then -($1.to_i) .. -1 + when /^-(\d+)/ then -($1.to_i) .. -1 else return nil end } -- cgit v1.2.3