mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix minor bug in returning properties
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10638 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d9c02f80ad
commit
80eb611458
2 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
* Source/NSPortNameServer.m: Log the host we are connecting to
|
||||
when we produce a warning for a failure of a link to gdomap.
|
||||
* Source/GSHTTPURLHandle.m: ([-propertyForKeyIfAvailable:]) return
|
||||
nil if the property is not available.
|
||||
|
||||
2001-08-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -591,7 +591,11 @@ static NSLock *urlLock = nil;
|
|||
NSString *key = [propertyKey lowercaseString];
|
||||
NSArray *array = [document headersNamed: key];
|
||||
|
||||
if ([array count] == 1)
|
||||
if ([array count] == 0)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
else if ([array count] == 1)
|
||||
{
|
||||
result = [[array objectAtIndex: 0] objectForKey: @"BaseValue"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue