Add missing content type to mixed part viewer
parent
13f4e5a4de
commit
ad40bff91f
|
@ -87,6 +87,7 @@
|
|||
id info, viewer;
|
||||
NSArray *parts;
|
||||
NSMutableArray *renderedParts;
|
||||
NSString *contentType;
|
||||
NSUInteger i, max;
|
||||
|
||||
parts = [[self bodyInfo] objectForKey: @"parts"];
|
||||
|
@ -102,9 +103,13 @@
|
|||
[viewer setPartPath: [self childPartPath]];
|
||||
[renderedParts addObject: [viewer renderedPart]];
|
||||
}
|
||||
contentType = [NSString stringWithFormat: @"%@/%@",
|
||||
[[self bodyInfo] objectForKey: @"type"],
|
||||
[[self bodyInfo] objectForKey: @"subtype"]];
|
||||
|
||||
return [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[self className], @"type",
|
||||
contentType, @"contentType",
|
||||
renderedParts, @"content",
|
||||
nil];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue