mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-02 05:36:23 +00:00
(fix) handle empty body data correctly (fixes #3581)
This commit is contained in:
@@ -844,7 +844,10 @@ static NSString *userAgent = nil;
|
||||
while ((currentKey = [attachmentKeys nextObject]))
|
||||
{
|
||||
body = [fetch objectForKey: [currentKey lowercaseString]];
|
||||
[bodies addObject: [body objectForKey: @"data"]];
|
||||
if (body)
|
||||
[bodies addObject: [body objectForKey: @"data"]];
|
||||
else
|
||||
[bodies addObject: [NSData data]];
|
||||
}
|
||||
|
||||
return bodies;
|
||||
|
||||
Reference in New Issue
Block a user