mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Handle read of EOF better
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23092 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ee213f83b
commit
f405c0e088
1 changed files with 2 additions and 2 deletions
|
@ -542,9 +542,9 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
{
|
||||
complete = NO; // Read chunked body data
|
||||
}
|
||||
else
|
||||
if (complete == NO && [d length] == 0)
|
||||
{
|
||||
complete = NO; // No
|
||||
complete = YES; // Had EOF ... terminate
|
||||
}
|
||||
}
|
||||
if (complete == YES)
|
||||
|
|
Loading…
Reference in a new issue