Make mime generation slightly more tolerant.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21738 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-09-23 11:43:23 +00:00
parent d41d6a7d6d
commit b6adfd8cf9
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-09-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: (-rawMimeData) tolerate nil content of
document ... should produce output with empty body.
2005-09-18 Adam Fedor <fedor@gnu.org>
* Version 1.11.1

View file

@ -4583,6 +4583,10 @@ static NSCharacterSet *tokenSet = nil;
type: @"application/octet-stream"
name: nil];
}
else if (content == nil)
{
[self setContent: @"" type: @"text/plain" name: nil];
}
else
{
[NSException raise: NSInternalInconsistencyException