Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[mms_codec] Replaced Content-Disposition:Inline with Attachment
Ancient MMS server software doesn't know about Inline and rejects the PDU.
  • Loading branch information
monich committed Apr 12, 2014
1 parent 0762a63 commit 24ceca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mms-lib/src/mms_codec.c
Expand Up @@ -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 = <Octet 130> */
*ptr++ = (guint8) 0x81; /* Attachment = <Octet 129> */
*ptr++ = (guint8) (WSP_PARAMETER_TYPE_FILENAME_DEFUNCT | 0x80);
strcpy(ptr, part->content_location);
ptr[cloc_len] = 0;
Expand Down

0 comments on commit 24ceca1

Please sign in to comment.