mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Make support of non-ascii header text for when parsing http
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23308 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
495602a4a7
commit
6c8168f8b6
1 changed files with 4 additions and 2 deletions
|
@ -2229,7 +2229,8 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
||||||
s = [s initWithBytes: beg
|
s = [s initWithBytes: beg
|
||||||
length: dst - beg
|
length: dst - beg
|
||||||
encoding: NSASCIIStringEncoding];
|
encoding: NSASCIIStringEncoding];
|
||||||
if (s == nil && _defaultEncoding != NSASCIIStringEncoding)
|
if (s == nil && flags.isHttp == 1
|
||||||
|
&& _defaultEncoding != NSASCIIStringEncoding)
|
||||||
{
|
{
|
||||||
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||||
s = [s initWithBytes: beg
|
s = [s initWithBytes: beg
|
||||||
|
@ -2341,7 +2342,8 @@ NSDebugMLLog(@"GSMime", @"Header parsed - %@", info);
|
||||||
s = [s initWithBytes: beg
|
s = [s initWithBytes: beg
|
||||||
length: dst - beg
|
length: dst - beg
|
||||||
encoding: NSASCIIStringEncoding];
|
encoding: NSASCIIStringEncoding];
|
||||||
if (s == nil && _defaultEncoding != NSASCIIStringEncoding)
|
if (s == nil && flags.isHttp == 1
|
||||||
|
&& _defaultEncoding != NSASCIIStringEncoding)
|
||||||
{
|
{
|
||||||
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
s = [NSStringClass allocWithZone: NSDefaultMallocZone()];
|
||||||
s = [s initWithBytes: beg
|
s = [s initWithBytes: beg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue