mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
d41d6a7d6d
commit
b6adfd8cf9
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