add new semi-private method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28030 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-03-03 20:04:11 +00:00
parent 0d9c36063c
commit a74694ef57
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2009-03-02 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSHTTPURLHandle.m: Implement new mechanism for handling
SOAP responses with HTTP status 500. Interim measure lntil the
NSURLConnection family of class is more complete.
2009-03-01 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBundle.m (-localizedStringForKey:value:table): Correct

View file

@ -104,6 +104,7 @@ static NSString *httpVersion = @"1.1";
BOOL tunnel;
BOOL debug;
BOOL keepalive;
BOOL returnAll;
unsigned char challenged;
NSFileHandle *sock;
NSURL *url;
@ -744,7 +745,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
bodyPos = 0;
DESTROY(wData);
NSResetMapTable(wProperties);
if (code >= 200 && code < 300)
if (returnAll || (code >= 200 && code < 300))
{
[self didLoadBytes: [d subdataWithRange: r]
loadComplete: YES];
@ -1196,6 +1197,11 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
debug = flag;
}
- (void) setReturnAll: (BOOL)flag
{
returnAll = flag;
}
- (void) _tryLoadInBackground: (NSURL*)fromURL
{
NSNotificationCenter *nc;