Enqueuing operation in upload example rather than calling -start directly

This commit is contained in:
Mattt Thompson 2013-01-25 08:56:43 -05:00
parent 349534188a
commit cd8cee4ac8

View file

@ -132,7 +132,7 @@ AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequ
[operation setUploadProgressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
NSLog(@"Sent %lld of %lld bytes", totalBytesWritten, totalBytesExpectedToWrite);
}];
[operation start];
[httpClient enqueueHTTPRequestOperation:operation];
```
### Streaming Request