Showing
2 changed files
with
3 additions
and
3 deletions
| @@ -549,7 +549,7 @@ static NSError *ASITooMuchRedirectionError; | @@ -549,7 +549,7 @@ static NSError *ASITooMuchRedirectionError; | ||
| 549 | break; | 549 | break; |
| 550 | } | 550 | } |
| 551 | 551 | ||
| 552 | - // See if our NSOperationQueue told us to cancel or we need to redirect | 552 | + // See if our NSOperationQueue told us to cancel |
| 553 | if ([self isCancelled]) { | 553 | if ([self isCancelled]) { |
| 554 | break; | 554 | break; |
| 555 | } | 555 | } |
| @@ -643,7 +643,7 @@ | @@ -643,7 +643,7 @@ | ||
| 643 | { | 643 | { |
| 644 | // Remove any old session cookies | 644 | // Remove any old session cookies |
| 645 | [ASIHTTPRequest clearSession]; | 645 | [ASIHTTPRequest clearSession]; |
| 646 | - ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/session_redirect"]]; | 646 | + ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/session_redirect"]]; |
| 647 | [request start]; | 647 | [request start]; |
| 648 | BOOL success = [[request responseString] isEqualToString:@"Take me to your leader"]; | 648 | BOOL success = [[request responseString] isEqualToString:@"Take me to your leader"]; |
| 649 | GHAssertTrue(success,@"Failed to redirect preserving session cookies"); | 649 | GHAssertTrue(success,@"Failed to redirect preserving session cookies"); |
| @@ -652,7 +652,7 @@ | @@ -652,7 +652,7 @@ | ||
| 652 | - (void)testTooMuchRedirection | 652 | - (void)testTooMuchRedirection |
| 653 | { | 653 | { |
| 654 | // This url will simply send a 302 redirect back to itself | 654 | // This url will simply send a 302 redirect back to itself |
| 655 | - ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/one_infinite_loop"]]; | 655 | + ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/one_infinite_loop"]]; |
| 656 | [request start]; | 656 | [request start]; |
| 657 | GHAssertNotNil([request error],@"Failed to generate an error when redirection occurs too many times"); | 657 | GHAssertNotNil([request error],@"Failed to generate an error when redirection occurs too many times"); |
| 658 | BOOL success = ([[request error] code] == ASITooMuchRedirectionErrorType); | 658 | BOOL success = ([[request error] code] == ASITooMuchRedirectionErrorType); |
-
Please register or login to post a comment