mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
f966ecd6da
commit
21494c4272
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
* Source/Additions/GSMime.h: improve consistency of naming of
|
* Source/Additions/GSMime.h: improve consistency of naming of
|
||||||
methods with add/set methods for new headers.
|
methods with add/set methods for new headers.
|
||||||
* Source/GSHTTPURLHandle.m: ([bgdRead:]) if the headers are complete
|
* 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>
|
2004-01-31 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||||
* Source/NSNumber.m: Modified numberWithXX: methods
|
* Source/NSNumber.m: Modified numberWithXX: methods
|
||||||
|
|
|
@ -312,7 +312,7 @@ static void debugWrite(NSData *data)
|
||||||
}
|
}
|
||||||
else if ([parser isComplete] == YES
|
else if ([parser isComplete] == YES
|
||||||
|| ([parser isInHeaders] == NO &&
|
|| ([parser isInHeaders] == NO &&
|
||||||
[[[document headerNamed: @"http"] objectForKey: NSHTTPPropertyStatusCodeKey] intValue] == 204))
|
[[[document headerNamed: @"content-length"] value] intValue] > 0))
|
||||||
{
|
{
|
||||||
GSMimeHeader *info;
|
GSMimeHeader *info;
|
||||||
NSString *val;
|
NSString *val;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue