mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix error getting text content
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38939 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
501dccc404
commit
58b5d0f627
1 changed files with 2 additions and 2 deletions
|
@ -5406,7 +5406,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
|||
{
|
||||
GSMimeHeader *hdr = [self headerNamed: @"content-type"];
|
||||
NSString *charset = [hdr parameterForKey: @"charset"];
|
||||
NSString *s = [hdr objectForKey: @"Subtype"];
|
||||
NSString *subtype = [hdr objectForKey: @"Subtype"];
|
||||
NSStringEncoding enc;
|
||||
|
||||
if (nil == charset)
|
||||
|
@ -5414,7 +5414,7 @@ appendString(NSMutableData *m, NSUInteger offset, NSUInteger fold,
|
|||
/* Treat xml as a special case ... if we have no charset
|
||||
* specified then we can get the charset from the xml header
|
||||
*/
|
||||
if ([s isEqualToString: @"xml"] == YES)
|
||||
if ([subtype isEqualToString: @"xml"] == YES)
|
||||
{
|
||||
charset = [documentClass charsetForXml: content];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue