Showing
2 changed files
with
0 additions
and
3 deletions
| @@ -1294,7 +1294,6 @@ static NSError *ASITooMuchRedirectionError; | @@ -1294,7 +1294,6 @@ static NSError *ASITooMuchRedirectionError; | ||
| 1294 | 1294 | ||
| 1295 | - (void)handleNetworkEvent:(CFStreamEventType)type | 1295 | - (void)handleNetworkEvent:(CFStreamEventType)type |
| 1296 | { | 1296 | { |
| 1297 | - NSLog(@"%hi",type); | ||
| 1298 | // Dispatch the stream events. | 1297 | // Dispatch the stream events. |
| 1299 | switch (type) { | 1298 | switch (type) { |
| 1300 | case kCFStreamEventHasBytesAvailable: | 1299 | case kCFStreamEventHasBytesAvailable: |
| @@ -716,14 +716,12 @@ | @@ -716,14 +716,12 @@ | ||
| 716 | success = [[request responseString] isEqualToString:content]; | 716 | success = [[request responseString] isEqualToString:content]; |
| 717 | GHAssertTrue(success,@"Failed to compress the body, or server failed to decompress it"); | 717 | GHAssertTrue(success,@"Failed to compress the body, or server failed to decompress it"); |
| 718 | 718 | ||
| 719 | - | ||
| 720 | request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/compressed_post_body"]]; | 719 | request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/compressed_post_body"]]; |
| 721 | [request setRequestMethod:@"PUT"]; | 720 | [request setRequestMethod:@"PUT"]; |
| 722 | [request setShouldCompressRequestBody:YES]; | 721 | [request setShouldCompressRequestBody:YES]; |
| 723 | [request setShouldStreamPostDataFromDisk:YES]; | 722 | [request setShouldStreamPostDataFromDisk:YES]; |
| 724 | [request setUploadProgressDelegate:self]; | 723 | [request setUploadProgressDelegate:self]; |
| 725 | [request setPostBodyFilePath:sourcePath]; | 724 | [request setPostBodyFilePath:sourcePath]; |
| 726 | - | ||
| 727 | [request start]; | 725 | [request start]; |
| 728 | 726 | ||
| 729 | success = [[request responseString] isEqualToString:content]; | 727 | success = [[request responseString] isEqualToString:content]; |
-
Please register or login to post a comment