mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 05:45:57 +00:00
Fix HTML content type when attaching files
This commit is contained in:
@@ -639,6 +639,7 @@ static NSArray *infoKeys = nil;
|
||||
|
||||
co = [self clientObject];
|
||||
[co fetchInfo];
|
||||
[co setIsHTML: isHTML];
|
||||
|
||||
if ([[mimeType type] isEqualToString: @"multipart"])
|
||||
{
|
||||
@@ -648,7 +649,6 @@ static NSArray *infoKeys = nil;
|
||||
{
|
||||
info = [self infoFromRequest];
|
||||
[co setHeaders: info];
|
||||
[co setIsHTML: isHTML];
|
||||
[co setText: (isHTML ? [NSString stringWithFormat: @"<html>%@</html>", text] : text)];;
|
||||
error = [co storeInfo];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user