HTTP clients use this in stead of "multipart/mixed" when POSTing forms;
substantially similar to multipart/mixed.

Signed-off-by: Joshua Judson Rosen <[email protected]>
---
 mailutils/reformime.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/mailutils/reformime.c b/mailutils/reformime.c
index 507fc06..603f2bd 100644
--- a/mailutils/reformime.c
+++ b/mailutils/reformime.c
@@ -131,8 +131,11 @@ static int parse(const char *boundary, char **argv)
                dbg_error_msg("TYPE:'%s'", type);
                if (0 == strncasecmp(type, "multipart/", 10)) {
                        /* Yes, recurse */
-                       if (strcasecmp(type + 10, "mixed") != 0)
+                       if (strcasecmp(type + 10, "mixed") != 0 &&
+                           strcasecmp(type + 10, "form-data") != 0)
+                       {
                                bb_error_msg_and_die("no support of content 
type '%s'", type);
+                       }
                        parse(xfind_token(tokens, "boundary"), argv);
 
                } else {
-- 
1.7.10.4

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to