mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
(fix) handle empty body data correctly (fixes #3581)
This commit is contained in:
1 parent
f08c718c00
commit
638dbc904c
1 file changed
+4
-1
@@ -832,7 +832,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