mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 17:11:12 +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
af84c47f9c
commit
efdaa9502e
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>
|
2012-03-06 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar
|
* Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar
|
||||||
|
|
|
@ -864,7 +864,8 @@ static NSURLProtocol *placeholder = nil;
|
||||||
GSMimeDocument *document = [_parser mimeDocument];
|
GSMimeDocument *document = [_parser mimeDocument];
|
||||||
unsigned bodyLength;
|
unsigned bodyLength;
|
||||||
|
|
||||||
if (wasInHeaders == YES && isInHeaders == NO)
|
_complete = [_parser isComplete];
|
||||||
|
if (YES == wasInHeaders && NO == isInHeaders)
|
||||||
{
|
{
|
||||||
GSMimeHeader *info;
|
GSMimeHeader *info;
|
||||||
NSString *enc;
|
NSString *enc;
|
||||||
|
@ -930,11 +931,7 @@ static NSURLProtocol *placeholder = nil;
|
||||||
{
|
{
|
||||||
_complete = YES; // No body expected.
|
_complete = YES; // No body expected.
|
||||||
}
|
}
|
||||||
else if ([enc isEqualToString: @"chunked"] == YES)
|
else if (_complete == NO && [d length] == 0)
|
||||||
{
|
|
||||||
_complete = NO; // Read chunked body data
|
|
||||||
}
|
|
||||||
if (_complete == NO && [d length] == 0)
|
|
||||||
{
|
{
|
||||||
_complete = YES; // Had EOF ... terminate
|
_complete = YES; // Had EOF ... terminate
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue