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:
Richard Frith-MacDonald 2007-05-30 04:22:41 +00:00
parent f342610121
commit 05ff2a87e1

View file

@ -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)