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 | 1de2fcf778cd8869ce241d72440f23a5d5b5bcdf (patch) | |
| tree | 3d6c564fe9fee21136eddfd4a261fc1543eff774 /lib/webrick/httputils.rb | |
| parent | 0b17e633cc2697b4d46c4355ed8fe11c3304f11b (diff) | |
| download | ruby-1de2fcf778cd8869ce241d72440f23a5d5b5bcdf.tar.gz ruby-1de2fcf778cd8869ce241d72440f23a5d5b5bcdf.tar.xz ruby-1de2fcf778cd8869ce241d72440f23a5d5b5bcdf.zip | |
* 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: http://svn.ruby-lang.org/repos/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 79ea9d1f4..bae281ca1 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 } |
