From 24ceca18443ba26ee639316f63e833839a61cc70 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sat, 12 Apr 2014 21:01:27 +0300 Subject: [PATCH] [mms_codec] Replaced Content-Disposition:Inline with Attachment Ancient MMS server software doesn't know about Inline and rejects the PDU. --- mms-lib/src/mms_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mms-lib/src/mms_codec.c b/mms-lib/src/mms_codec.c index ad1abb4..d45b058 100644 --- a/mms-lib/src/mms_codec.c +++ b/mms-lib/src/mms_codec.c @@ -2140,7 +2140,7 @@ static gboolean mms_encode_send_req_part_header(struct mms_attachment *part, memcpy(ptr, &cd_val, cd_len); ptr += cd_len; - *ptr++ = (guint8) 0x82; /* Inline = */ + *ptr++ = (guint8) 0x81; /* Attachment = */ *ptr++ = (guint8) (WSP_PARAMETER_TYPE_FILENAME_DEFUNCT | 0x80); strcpy(ptr, part->content_location); ptr[cloc_len] = 0;