[luci] lucid gives application/octet-stream to .xsl files.

Loren Stafford lstafford at ubicom.com
Fri Sep 11 02:53:12 CEST 2009


This works for me:

--- libs/http/luasrc/http/protocol/mime-orig.lua	2009-09-10
17:33:05.000000000 -0700
+++ libs/http/luasrc/http/protocol/mime.lua	2009-09-10
17:34:30.000000000 -0700
@@ -44,6 +44,7 @@
     ["zip"]   = "application/zip";
     ["pdf"]   = "application/pdf";
     ["xml"]   = "application/xml";
+    ["xsl"]   = "application/xml";
     ["doc"]   = "application/msword";
     ["ppt"]   = "application/vnd.ms-powerpoint";
     ["xls"]   = "application/vnd.ms-excel";

Loren Stafford
Ubicom, Inc.
Skype: loren.stafford

 

-----Original Message-----
From: luci-bounces at lists.subsignal.org
[mailto:luci-bounces at lists.subsignal.org] On Behalf Of Jo-Philipp Wich
Sent: Wednesday, September 09, 2009 17:14
To: luci at lists.subsignal.org
Subject: Re: [luci] lucid gives application/octet-stream to .xsl files.

Hi.

Take a look at libs/http/luasrc/http/protocol/mime.lua (on the target
it's /usr/lib/lua/luci/http/protocol/mime.lua). This class contains the
used extension-to-mimetype mappings.

If you send me a patch with the required extensions and types, I'll
include it in the development version.

Regards,
JoW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: luci_xsl_mime_type.patch
Type: application/octet-stream
Size: 461 bytes
Desc: luci_xsl_mime_type.patch
Url : http://lists.subsignal.org/pipermail/luci/attachments/20090910/ee251245/attachment.obj 


More information about the luci mailing list