mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
Fix for background posting of data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11710 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04ef0e02ba
commit
d66a641c93
9 changed files with 125 additions and 66 deletions
|
@ -720,8 +720,7 @@ static void debugWrite(NSData *data)
|
|||
|
||||
- (BOOL) writeData: (NSData*)d
|
||||
{
|
||||
[self writeProperty: d forKey: GSHTTPPropertyBodyKey];
|
||||
[self loadInForeground];
|
||||
ASSIGN(wData, d);
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
@ -732,11 +731,7 @@ static void debugWrite(NSData *data)
|
|||
[NSException raise: NSInvalidArgumentException
|
||||
format: @"%@ with invalid key", NSStringFromSelector(_cmd)];
|
||||
}
|
||||
if ([propertyKey isEqual: GSHTTPPropertyBodyKey] == YES)
|
||||
{
|
||||
ASSIGN(wData, property);
|
||||
}
|
||||
else if ([propertyKey hasPrefix: @"GSHTTPProperty"])
|
||||
if ([propertyKey hasPrefix: @"GSHTTPProperty"])
|
||||
{
|
||||
if (property == nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue