https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412007-04-09T17:43:28Zlighty labsLighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=15042007-04-09T17:43:28ZAnonymous
<ul></ul><p>Will this be fixed in 1.5? If I use #include SSI directives I do not need to use PHP at all on my site, but not being able to send out the correct MIME type prevents me from doing this (in my case, I cannot use inline SVG without sending out an application/xhtml+xml MIME type).</p>
<p>-- evan</p> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=15052007-04-09T22:52:07ZAnonymous
<ul></ul><p>I just peeked at the code for mod_ssi.c and saw a line like this:</p>
<pre>
response_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_STR_LEN("text/html"))
</pre>
<p>Since it looked like lighttpd was just overwriting whatever header was previously there, I commented out the line and recompiled. Sure enough, lighttpd serves the correct MIME type for my pages now. I'm obviously not familiar with the lighttpd codebase, but it could be the case that this line was just thrown in during the initial coding of mod_ssi to get things working, and can now be safely removed.</p>
<p>I did the modification with 1.4.13, but the code for 1.5.0-r1691 (the latest release on the download page) is exactly the same.</p>
<p>-- evan</p> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=43972008-10-08T19:02:17Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.20</i> to <i>1.4.21</i></li></ul> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=53192009-02-05T15:26:58Zicy
<ul><li><strong>Target version</strong> changed from <i>1.4.21</i> to <i>1.4.22</i></li><li><strong>Patch available</strong> set to <i>No</i></li></ul> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=55162009-02-26T10:06:47Zjannewmarch
<ul></ul><p>I have an XML file (content-type type application/xml) with server-side includes. It gets its content-type set to text/html which stuffs up the XSLT stylesheets since the browser gets the wrong type. I tried removing the offending line in mod_ssi.c that sets the content-type and now it is fine. Is there some issue with removing that line from the production source, since it has been suggested several times and nothing has happened?</p>
<p>Cheers,</p>
<p>Jan</p> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=55702009-02-28T20:02:42Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.22</i> to <i>1.4.23</i></li></ul> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=58962009-04-26T21:18:23Zstbuehler
<ul><li><strong>Assignee</strong> deleted (<del><i>jan</i></del>)</li><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li></ul><p>Not setting the content-type is a bad idea.</p> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=58972009-04-26T21:18:29Zstbuehler
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li></ul> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=60192009-06-10T14:55:04Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r2519.</p> Lighttpd - Feature #615: mod_ssi has a hardcoded MIME type.https://redmine.lighttpd.net/issues/615?journal_id=68272010-03-09T22:00:48Zstbuehler
<ul><li><strong>Missing in 1.5.x</strong> set to <i>No</i></li></ul>