Fix HTML content type when attaching files

pull/101/head^2
Francis Lachapelle 2015-12-01 16:10:07 -05:00
parent 5bb6cea09e
commit 970f5e5bfe
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}