This project is closed and read-only.
Backport #2593 » diff.patch
| lib/webrick/httpservlet/filehandler.rb (working copy) | ||
|---|---|---|
|
content = io.read(last-first+1)
|
||
|
end
|
||
|
res['content-type'] = mtype
|
||
|
res['content-range'] = "#{first}-#{last}/#{filesize}"
|
||
|
res['content-range'] = "bytes #{first}-#{last}/#{filesize}"
|
||
|
res['content-length'] = last - first + 1
|
||
|
res.body = content
|
||
|
else
|
||