Bug 646105 - Feed enclosure enhancements - add a size parameter to the Content-Type if we know the size of the enclosure; r=myk,Standard8

This commit is contained in:
alta88@gmail.com 2011-05-04 15:40:28 +01:00
Родитель 46e454baed
Коммит 81f3058a43
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -434,7 +434,9 @@ FeedEnclosure.prototype =
{
return '\n' +
ENCLOSURE_BOUNDARY_PREFIX + aBoundaryID + '\n' +
'Content-Type: ' + this.mContentType + '; name="' + this.mFileName + '"\n' +
'Content-Type: ' + this.mContentType +
'; name="' + this.mFileName +
(this.mLength ? '"; size=' + this.mLength : '"') + '\n' +
'X-Mozilla-External-Attachment-URL: ' + this.mURL + '\n' +
'Content-Disposition: attachment; filename="' + this.mFileName + '"\n\n' +
'This MIME attachment is stored separately from the message.\n' +