Showing
3 changed files
with
2 additions
and
9 deletions
| @@ -133,7 +133,6 @@ | @@ -133,7 +133,6 @@ | ||
| 133 | ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease]; | 133 | ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease]; |
| 134 | [request start]; | 134 | [request start]; |
| 135 | 135 | ||
| 136 | - NSLog([request responseString]); | ||
| 137 | BOOL success = [[request responseString] isEqualToString:@"HTTP/1.1"]; | 136 | BOOL success = [[request responseString] isEqualToString:@"HTTP/1.1"]; |
| 138 | GHAssertTrue(success,@"Wrong HTTP version used (May fail when using a proxy that changes the HTTP version!)"); | 137 | GHAssertTrue(success,@"Wrong HTTP version used (May fail when using a proxy that changes the HTTP version!)"); |
| 139 | 138 |
| @@ -66,14 +66,11 @@ static NSString *proxyPassword = @""; | @@ -66,14 +66,11 @@ static NSString *proxyPassword = @""; | ||
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | - (void)testProxyAutodetect | 68 | - (void)testProxyAutodetect |
| 69 | -{ | 69 | +{ |
| 70 | - BOOL success = (![proxyHost isEqualToString:@""] && proxyPort > 0); | ||
| 71 | - GHAssertTrue(success,@"You need to supply the details of your proxy to run the proxy autodetect test"); | ||
| 72 | - | ||
| 73 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; | 70 | ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; |
| 74 | [request start]; | 71 | [request start]; |
| 75 | 72 | ||
| 76 | - success = ([request proxyHost] && [request proxyPort]); | 73 | + BOOL success = ([request proxyHost] && [request proxyPort]); |
| 77 | GHAssertTrue(success,@"Failed to detect the proxy"); | 74 | GHAssertTrue(success,@"Failed to detect the proxy"); |
| 78 | } | 75 | } |
| 79 | 76 |
-
Please register or login to post a comment