Showing
2 changed files
with
7 additions
and
0 deletions
This diff is collapsed. Click to expand it.
| @@ -1464,6 +1464,13 @@ | @@ -1464,6 +1464,13 @@ | ||
| 1464 | BOOL success = ![request connectionCanBeReused]; | 1464 | BOOL success = ![request connectionCanBeReused]; |
| 1465 | GHAssertTrue(success,@"Should not be able to re-use a request sent with Connection:close"); | 1465 | GHAssertTrue(success,@"Should not be able to re-use a request sent with Connection:close"); |
| 1466 | 1466 | ||
| 1467 | + // Ensure we close the connection when authentication is needed | ||
| 1468 | + request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/close-connection-auth-needed"]]; | ||
| 1469 | + [request startSynchronous]; | ||
| 1470 | + | ||
| 1471 | + success = ![request connectionCanBeReused]; | ||
| 1472 | + GHAssertTrue(success,@"Should not be able to re-use a request sent with Connection:close"); | ||
| 1473 | + | ||
| 1467 | } | 1474 | } |
| 1468 | 1475 | ||
| 1469 | - (void)testPersistentConnectionTimeout | 1476 | - (void)testPersistentConnectionTimeout |
-
Please register or login to post a comment