mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Keep old behavior of setResourceData:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11711 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d66a641c93
commit
b31e30a93c
2 changed files with 16 additions and 1 deletions
|
@ -622,7 +622,21 @@ NSString *NSURLPartKey_query = @"query";
|
|||
{
|
||||
NSURLHandle *handle = [self URLHandleUsingCache: YES];
|
||||
|
||||
return (handle == nil) ? NO : [handle writeData: data];
|
||||
if (handle == nil)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
if ([handle writeData: data] == NO)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
[self loadResourceDataNotifyingClient: self
|
||||
usingCache: YES];
|
||||
if ([handle resourceData] == nil)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (id) propertyForKey: (NSString*)propertyKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue