Update to fix background posting.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11648 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-12-07 14:32:22 +00:00
parent ec04506bd5
commit 48b9522be6
6 changed files with 24 additions and 2 deletions

View file

@ -720,7 +720,7 @@ static void debugWrite(NSData *data)
- (BOOL) writeData: (NSData*)d
{
ASSIGN(wData, d);
[self writeProperty: d forKey: GSHTTPPropertyBodyKey];
[self loadInForeground];
return YES;
}
@ -732,7 +732,11 @@ static void debugWrite(NSData *data)
[NSException raise: NSInvalidArgumentException
format: @"%@ with invalid key", NSStringFromSelector(_cmd)];
}
if ([propertyKey hasPrefix: @"GSHTTPProperty"])
if ([propertyKey isEqual: GSHTTPPropertyBodyKey] == YES)
{
ASSIGN(wData, property);
}
else if ([propertyKey hasPrefix: @"GSHTTPProperty"])
{
if (property == nil)
{

View file

@ -283,6 +283,8 @@ NSString *NSHTTPPropertyRedirectionHeadersKey;
NSString *NSHTTPPropertyErrorPageDataKey;
/* These are GNUstep extras */
NSString *GSHTTPPropertyBodyKey;
NSString *GSHTTPPropertyMethodKey;
NSString *GSHTTPPropertyProxyHostKey;
@ -517,6 +519,8 @@ GSBuildStrings()
NSHTTPPropertyErrorPageDataKey
= [[SClass alloc] initWithCString: "HTTPPropertyErrorPageDataKey"];
GSHTTPPropertyBodyKey
= [[SClass alloc] initWithCString: "GSHTTPPropertyBodyKey"];
GSHTTPPropertyMethodKey
= [[SClass alloc] initWithCString: "GSHTTPPropertyMethodKey"];
GSHTTPPropertyProxyHostKey