#2101: .svg file in new-format documentation downloads as a file on chrome mac
--------------------+-----------------------
Reporter:  ayust    |       Owner:  djmitche
    Type:  defect   |      Status:  new
Priority:  blocker  |   Milestone:  0.8.5
 Version:  master   |  Resolution:
Keywords:           |
--------------------+-----------------------

Comment (by ayust):

 Actually, I think I found the real issue (for this particular case).
 `nginx` isn't providing the right `Content-Type` header for SVG files. For
 example, when you request the buildbot logo (which is a PNG), you get the
 following:

 {{{
 $ curl --head http://trac.buildbot.net/chrome/site/header-text-
 transparent.png
 HTTP/1.1 200 Ok
 Server: nginx/0.8.54
 Date: Wed, 07 Sep 2011 05:54:19 GMT
 Content-Type: image/png
 Connection: keep-alive
 Keep-Alive: timeout=45
 Content-Length: 14301
 Last-Modified: Thu, 09 Apr 2009 23:22:17 GMT
 }}}

 But, note the Content-Type header when requesting an SVG:

 {{{
 $ curl --head
 http://buildbot.net/buildbot/docs/latest/_images/overview.svg
 HTTP/1.1 200 OK
 Server: nginx/0.8.54
 Date: Wed, 07 Sep 2011 05:53:07 GMT
 Content-Type: application/octet-stream
 Content-Length: 119768
 Last-Modified: Mon, 22 Aug 2011 02:39:20 GMT
 Connection: keep-alive
 Keep-Alive: timeout=45
 Accept-Ranges: bytes
 }}}

 As it turns out, browsers treat `application/octet-stream` as a download
 (no big surprise).

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2101#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to