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:
Richard Frith-Macdonald 2001-12-12 14:10:13 +00:00
parent 04ef0e02ba
commit d66a641c93
9 changed files with 125 additions and 66 deletions

View file

@ -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)
{