mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
d5a51b3f1e
commit
52f4c4ab2f
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue