Skip to content

Commit

Permalink
Set proxy request timeout to 30 mins
Browse files Browse the repository at this point in the history
Closes #3
  • Loading branch information
NiklasMerz committed Dec 17, 2020
1 parent 0d1a236 commit 598a721
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ios/WebviewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ - (BOOL) overrideSchemeTask: (id <WKURLSchemeTask>)urlSchemeTask {
}
[request setAllHTTPHeaderFields:header];
[request setHTTPShouldHandleCookies:YES];
[request setTimeoutInterval:1800];

[[[NSURLSession sharedSession] dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if(error && (self.stoppedTasks == nil || ![self.stoppedTasks containsObject:urlSchemeTask])) {
Expand Down

0 comments on commit 598a721

Please sign in to comment.