Index: src/OFHTTPRequest.h ================================================================== --- src/OFHTTPRequest.h +++ src/OFHTTPRequest.h @@ -94,12 +94,12 @@ * * @param request The OFHTTPRequest which will follow a redirect * @param URL The URL to which it will follow a redirect * @return A boolean whether the OFHTTPRequest should follow the redirect */ -- (BOOL)request: (OFHTTPRequest*)request - willFollowRedirectTo: (OFURL*)URL; +- (BOOL)request: (OFHTTPRequest*)request + shouldFollowRedirectTo: (OFURL*)URL; @end /*! * @brief A class for storing and performing HTTP requests. */ Index: src/OFHTTPRequest.m ================================================================== --- src/OFHTTPRequest.m +++ src/OFHTTPRequest.m @@ -349,11 +349,11 @@ new = [OFURL URLWithString: value relativeToURL: URL]; follow = [delegate request: self - willFollowRedirectTo: new]; + shouldFollowRedirectTo: new]; if (!follow && delegate != nil) { [serverHeaders setObject: value forKey: key]; continue; @@ -587,11 +587,11 @@ didReceiveData: (const char*)data withLength: (size_t)len { } -- (BOOL)request: (OFHTTPRequest*)request - willFollowRedirectTo: (OFURL*)url +- (BOOL)request: (OFHTTPRequest*)request + shouldFollowRedirectTo: (OFURL*)url { return YES; } @end