mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +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
4d1ab4ac3d
commit
adebcfb5e1
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"];
|
GSMimeHeader *hdr = [self headerNamed: @"content-type"];
|
||||||
NSString *charset = [hdr parameterForKey: @"charset"];
|
NSString *charset = [hdr parameterForKey: @"charset"];
|
||||||
NSString *s = [hdr objectForKey: @"Subtype"];
|
NSString *subtype = [hdr objectForKey: @"Subtype"];
|
||||||
NSStringEncoding enc;
|
NSStringEncoding enc;
|
||||||
|
|
||||||
if (nil == charset)
|
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
|
/* Treat xml as a special case ... if we have no charset
|
||||||
* specified then we can get the charset from the xml header
|
* 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];
|
charset = [documentClass charsetForXml: content];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue