mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
3059927a2b
commit
6dd9426be9
2 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
* Source/NSPortNameServer.m: Log the host we are connecting to
|
* Source/NSPortNameServer.m: Log the host we are connecting to
|
||||||
when we produce a warning for a failure of a link to gdomap.
|
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>
|
2001-08-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -591,7 +591,11 @@ static NSLock *urlLock = nil;
|
||||||
NSString *key = [propertyKey lowercaseString];
|
NSString *key = [propertyKey lowercaseString];
|
||||||
NSArray *array = [document headersNamed: key];
|
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"];
|
result = [[array objectAtIndex: 0] objectForKey: @"BaseValue"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue