mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
attempt fix for chunked coding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34896 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
454385ff6e
commit
252100a423
2 changed files with 9 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-03-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSURLProtocol.m: check for parse complete explicitly and
|
||||
remove case where complete is set to NO if using chunked coding ...
|
||||
it seems to be jsut wrong.
|
||||
|
||||
2012-03-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar
|
||||
|
|
|
@ -864,7 +864,8 @@ static NSURLProtocol *placeholder = nil;
|
|||
GSMimeDocument *document = [_parser mimeDocument];
|
||||
unsigned bodyLength;
|
||||
|
||||
if (wasInHeaders == YES && isInHeaders == NO)
|
||||
_complete = [_parser isComplete];
|
||||
if (YES == wasInHeaders && NO == isInHeaders)
|
||||
{
|
||||
GSMimeHeader *info;
|
||||
NSString *enc;
|
||||
|
@ -930,11 +931,7 @@ static NSURLProtocol *placeholder = nil;
|
|||
{
|
||||
_complete = YES; // No body expected.
|
||||
}
|
||||
else if ([enc isEqualToString: @"chunked"] == YES)
|
||||
{
|
||||
_complete = NO; // Read chunked body data
|
||||
}
|
||||
if (_complete == NO && [d length] == 0)
|
||||
else if (_complete == NO && [d length] == 0)
|
||||
{
|
||||
_complete = YES; // Had EOF ... terminate
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue