mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
30ab57b9a4
commit
d85ea9ba47
1 changed files with 7 additions and 2 deletions
|
@ -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]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue