mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
Fix recently introduced error parsing partial http headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25206 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f342610121
commit
05ff2a87e1
1 changed files with 0 additions and 10 deletions
|
@ -1376,16 +1376,6 @@ wordData(NSString *word)
|
|||
bytes = (unsigned char*)[data mutableBytes];
|
||||
dataEnd = [data length];
|
||||
|
||||
/* If we are parsing an HTTP response, but it doesn't start
|
||||
* with HTTP/ then it is a very old version where we just
|
||||
* get the body and no headers.
|
||||
*/
|
||||
if (flags.isHttp == 1 && dataEnd > 4
|
||||
&& memcmp(bytes, "HTTP/", 5) != 0)
|
||||
{
|
||||
flags.inBody = 1;
|
||||
}
|
||||
|
||||
while (flags.inBody == 0)
|
||||
{
|
||||
if ([self _unfoldHeader] == NO)
|
||||
|
|
Loading…
Reference in a new issue