[macruby-changes] [5005] MacRuby/trunk/lib/webrick/httpservlet/filehandler.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Dec 8 21:18:36 PST 2010
Revision: 5005
http://trac.macosforge.org/projects/ruby/changeset/5005
Author: watson1978 at gmail.com
Date: 2010-12-08 21:18:32 -0800 (Wed, 08 Dec 2010)
Log Message:
-----------
modified the "Content-Range" header. Merged from CRuby 1.9 r26346.
see https://github.com/ruby/ruby/commit/f00951bb25c5a2a1508a7ff6e09a299700030f0a
Revision Links:
--------------
http://trac.macosforge.org/projects/ruby/changeset/26346
Modified Paths:
--------------
MacRuby/trunk/lib/webrick/httpservlet/filehandler.rb
Modified: MacRuby/trunk/lib/webrick/httpservlet/filehandler.rb
===================================================================
--- MacRuby/trunk/lib/webrick/httpservlet/filehandler.rb 2010-12-09 05:11:22 UTC (rev 5004)
+++ MacRuby/trunk/lib/webrick/httpservlet/filehandler.rb 2010-12-09 05:18:32 UTC (rev 5005)
@@ -87,7 +87,7 @@
content = io.read(last-first+1)
body << "--" << boundary << CRLF
body << "Content-Type: #{mtype}" << CRLF
- body << "Content-Range: #{first}-#{last}/#{filesize}" << CRLF
+ body << "Content-Range: bytes #{first}-#{last}/#{filesize}" << CRLF
body << CRLF
body << content
body << CRLF
@@ -107,7 +107,7 @@
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101208/fe6694db/attachment-0001.html>
More information about the macruby-changes
mailing list