From 06cbfc3c444d076a79487165296aed66d2c274f1 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 3 Mar 2009 19:59:58 +0000 Subject: [PATCH] revert git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28029 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 8 -------- Headers/Foundation/NSURLHandle.h | 7 ------- Source/GSHTTPURLHandle.m | 8 +------- Source/NSURLHandle.m | 3 --- 4 files changed, 1 insertion(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1e2aa663..c5cdc1c8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,11 +1,3 @@ -2009-03-02 Richard Frith-Macdonald - - * Headers/Foundation/NSURLHandle.h: Add new key. - * Source/NSURLHandle.m: Ditto - * Source/GSHTTPURLHandle.m: When a request completes with an HTTP - status code outside the 200-299 range, report it as a load complete - rather than cancelling the load is the new 'ReturnAll' key is set. - 2009-03-01 Fred Kiefer * Source/NSBundle.m (-localizedStringForKey:value:table): Correct diff --git a/Headers/Foundation/NSURLHandle.h b/Headers/Foundation/NSURLHandle.h index 242c7e039..543d98d85 100644 --- a/Headers/Foundation/NSURLHandle.h +++ b/Headers/Foundation/NSURLHandle.h @@ -115,13 +115,6 @@ GS_EXPORT NSString * const GSHTTPPropertyKeyFileKey; */ GS_EXPORT NSString * const GSHTTPPropertyPasswordKey; -/** - * Key for passing to [NSURLHandle]'s propertyForKey.. methods to - * specify that all results should be returned, not just those where the - * HTTP status code is in the 200-299 range. - */ -GS_EXPORT NSString * const GSHTTPPropertyReturnAllKey; - #endif /** diff --git a/Source/GSHTTPURLHandle.m b/Source/GSHTTPURLHandle.m index dfa80a3b2..c194c9b15 100644 --- a/Source/GSHTTPURLHandle.m +++ b/Source/GSHTTPURLHandle.m @@ -744,8 +744,7 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data) bodyPos = 0; DESTROY(wData); NSResetMapTable(wProperties); - if ((code >= 200 && code < 300) - || [[request objectForKey: GSHTTPPropertyReturnAllKey] boolValue]) + if (code >= 200 && code < 300) { [self didLoadBytes: [d subdataWithRange: r] loadComplete: YES]; @@ -1514,11 +1513,6 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data) * to 8080 for http and 4430 for https. * * - * GSHTTPPropertyReturnAllKey - specify whether the handle is to - * return all HTTP responses, or only those where the code is in - * the range from 200 to 299. - * - * * Any NSHTTPProperty... key * * diff --git a/Source/NSURLHandle.m b/Source/NSURLHandle.m index 66b5dbcf2..241587af4 100644 --- a/Source/NSURLHandle.m +++ b/Source/NSURLHandle.m @@ -88,9 +88,6 @@ NSString * const GSHTTPPropertyKeyFileKey NSString * const GSHTTPPropertyPasswordKey = @"GSHTTPPropertyPasswordKey"; -NSString * const GSHTTPPropertyReturnAllKey - = @"GSHTTPPropertyReturnAllKey"; - /** *