Skip to content

Commit cd8cee4

Browse files
committed
Enqueuing operation in upload example rather than calling -start directly
1 parent 3495341 commit cd8cee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequ
132132
[operation setUploadProgressBlock:^(NSUInteger bytesWritten, long long totalBytesWritten, long long totalBytesExpectedToWrite) {
133133
NSLog(@"Sent %lld of %lld bytes", totalBytesWritten, totalBytesExpectedToWrite);
134134
}];
135-
[operation start];
135+
[httpClient enqueueHTTPRequestOperation:operation];
136136
```
137137
138138
### Streaming Request

0 commit comments

Comments
 (0)