Fix for delay handling status 204 in returned pages.

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

View file

@ -2,6 +2,8 @@
* 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.
2004-01-31 Manuel Guesdon <mguesdon@orange-concept.com>
* Source/NSNumber.m: Modified numberWithXX: methods

View file

@ -310,7 +310,9 @@ static void debugWrite(NSData *data)
[self endLoadInBackground];
[self backgroundLoadDidFailWithReason: @"Response parse failed"];
}
else if ([parser isComplete] == YES)
else if ([parser isComplete] == YES
|| ([parser isInHeaders] == NO &&
[[[document headerNamed: @"http"] objectForKey: NSHTTPPropertyStatusCodeKey] intValue] == 204))
{
GSMimeHeader *info;
NSString *val;