[iOS] Fixed upload timeout

This commit is contained in:
r.kuznetsov 2019-09-27 15:43:36 +03:00 committed by Aleksey Belousov
parent 1f07ded6fe
commit 7b09b2d50f

View file

@ -85,7 +85,7 @@
- (void)uploadWithCompletion:(void (^)(NSInteger httpCode, NSString *description))completion {
NSURL * url = [NSURL URLWithString:self.urlString];
NSMutableURLRequest * uploadRequest = [NSMutableURLRequest requestWithURL:url];
uploadRequest.timeoutInterval = 5;
uploadRequest.timeoutInterval = 15;
uploadRequest.HTTPMethod = self.method;
NSString * boundary = [NSString stringWithFormat:@"Boundary-%@", [[NSUUID UUID] UUIDString]];