mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-27 09:02:43 +00:00
fix(mail): use encoding from MIME part
This commit is contained in:
@@ -513,11 +513,12 @@ static BOOL debugOn = NO;
|
||||
// [self debugWithFormat:@" fetched %d bytes: %@", [data length],
|
||||
// [self partInfo]];
|
||||
|
||||
// TODO: wrong, could be encoded
|
||||
response = [localContext response];
|
||||
mimeType = [self davContentType];
|
||||
if ([mimeType isEqualToString: @"application/x-xpinstall"])
|
||||
mimeType = @"application/octet-stream";
|
||||
else if (!asAttachment)
|
||||
mimeType = [self contentTypeForBodyPartInfo: [self partInfo]];
|
||||
|
||||
[response setHeader: mimeType forKey: @"content-type"];
|
||||
[response setHeader: [NSString stringWithFormat:@"%d", (int)[data length]]
|
||||
|
||||
Reference in New Issue
Block a user