mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
38c32b55ca
commit
17d9956fe2
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue