Generalise last fix to all cases where no content-length is supplied.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2004-02-01 14:43:50 +00:00
parent 17d9956fe2
commit a5cf95ab82
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
* Source/Additions/GSMime.h: improve consistency of naming of
methods with add/set methods for new headers.
* Source/GSHTTPURLHandle.m: ([bgdRead:]) if the headers are complete
and the status is 204, don't expect to read body content.
and there is no content-length, don't expect to read body content.
2004-01-31 Manuel Guesdon <mguesdon@orange-concept.com>
* Source/NSNumber.m: Modified numberWithXX: methods

View file

@ -312,7 +312,7 @@ static void debugWrite(NSData *data)
}
else if ([parser isComplete] == YES
|| ([parser isInHeaders] == NO &&
[[[document headerNamed: @"http"] objectForKey: NSHTTPPropertyStatusCodeKey] intValue] == 204))
[[[document headerNamed: @"content-length"] value] intValue] > 0))
{
GSMimeHeader *info;
NSString *val;