Fix error in last mod

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11339 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-11-08 12:28:04 +00:00
parent 30ab57b9a4
commit d85ea9ba47

View file

@ -623,9 +623,14 @@ static NSLock *urlLock = nil;
- (BOOL) writeProperty: (id) property forKey: (NSString*) propertyKey
{
if (propertyKey == nil || [propertyKey isKindOfClass: [NSString class]] == NO)
{
[NSException raise: NSInvalidArgumentException
format: @"%@ with invalid key", NSStringFromSelector(_cmd)];
}
if ([propertyKey hasPrefix: @"GSHTTPProperty"])
{
if (propertyKey == nil)
if (property == nil)
{
[request removeObjectForKey: propertyKey];
}
@ -636,7 +641,7 @@ static NSLock *urlLock = nil;
}
else
{
if (propertyKey == nil)
if (property == nil)
{
[wProperties removeObjectForKey: [propertyKey lowercaseString]];
}