diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-13 04:11:30 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-08-13 04:11:30 +0000 |
commit | d85b9c8925b54589636566decc1141653765243a (patch) | |
tree | 3d6c564fe9fee21136eddfd4a261fc1543eff774 /lib/webrick/httputils.rb | |
parent | a7b6d90e48478613150f12389e24c8a1b5cddd72 (diff) | |
download | ruby-d85b9c8925b54589636566decc1141653765243a.tar.gz |
* 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
Diffstat (limited to 'lib/webrick/httputils.rb')
-rw-r--r-- | lib/webrick/httputils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |