mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
0d9c36063c
commit
a74694ef57
2 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue