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:
Richard Frith-MacDonald 2015-08-28 14:18:46 +00:00
parent 501dccc404
commit 58b5d0f627

View file

@ -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];
}