You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2005/11/03 18:10:07 UTC
svn commit: r330582 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
Author: maxime
Date: Thu Nov 3 09:10:00 2005
New Revision: 330582
URL: http://svn.apache.org/viewcvs?rev=330582&view=rev
Log:
Use text/plain as default Content-Type
Modified:
httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=330582&r1=330581&r2=330582&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Thu Nov 3 09:10:00 2005
@@ -38,11 +38,11 @@
/* If no Content-Type is provided, it means that we are parsing a
sub-part of the multipart message. The Content-Type header
- should then be the first line of the part. If not, just ignore
- the sub-part. */
+ should then be the first line of the part. If not, use
+ text/plain as default for the sub-part. */
tmp = strstr(body, "Content-Type: ");
if (!ct && (!tmp || tmp > headers_bound)) {
- return NULL;
+ ct = "text/plain";
}
mail = calloc(1, sizeof(mbox_mime_message_t));