error: mime.types too long for docx / xlsx / ppt

25 views
Skip to first unread message

Marcio Marques

unread,
Jun 5, 2014, 5:19:29 PM6/5/14
to openlitespee...@googlegroups.com
In last version we cannot add mime.types for docx / pptx/ xlsx. It´s say error.

David

unread,
Jun 6, 2014, 9:40:23 AM6/6/14
to openlitespee...@googlegroups.com
Can you post the exact setting of this mime type?

Marcio Marques

unread,
Jun 6, 2014, 9:44:12 AM6/6/14
to openlitespee...@googlegroups.com
xlsx   application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
xltx   application/vnd.openxmlformats-officedocument.spreadsheetml.template
potx   application/vnd.openxmlformats-officedocument.presentationml.template
ppsx   application/vnd.openxmlformats-officedocument.presentationml.slideshow
pptx   application/vnd.openxmlformats-officedocument.presentationml.presentation
sldx   application/vnd.openxmlformats-officedocument.presentationml.slide
docx   application/vnd.openxmlformats-officedocument.wordprocessingml.document
dotx   application/vnd.openxmlformats-officedocument.wordprocessingml.template

David

unread,
Jun 6, 2014, 10:08:09 AM6/6/14
to openlitespee...@googlegroups.com
Thanks. The below is the patch, you may want to update the file and rebuild the binary. Or you can wait for our next release which already fixed it.
 

diff --git src/http/httpmime.h src/http/httpmime.h
index 785474a..ac80e40 100644
--- src/http/httpmime.h
+++ src/http/httpmime.h
@@ -24,7 +24,7 @@
 
 #include <stddef.h>
 
-#define MAX_MIME_LEN 60
+#define MAX_MIME_LEN 256
 
 class HttpHandler;
 class MimeMap;
--
You received this message because you are subscribed to the Google Groups "OpenLiteSpeed Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlitespeed-deve...@googlegroups.com.
To post to this group, send email to openlitespee...@googlegroups.com.
Visit this group at http://groups.google.com/group/openlitespeed-development.
For more options, visit https://groups.google.com/d/optout.

lsmichael

unread,
Jul 8, 2014, 5:29:03 PM7/8/14
to openlitespee...@googlegroups.com
Hi Marcio,

OpenLiteSpeed 1.3.3 is out now and should have the issue fixed. Please let us know if you still run into the problem.

Cheers,

Michael
To unsubscribe from this group and stop receiving emails from it, send an email to openlitespeed-development+unsub...@googlegroups.com.
To post to this group, send email to openlitespeed-development@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages