Skip to content

Commit

Permalink
Use default NSURLRequest timeoutInterval (currently 60s) (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo authored Dec 9, 2024
1 parent 1ca60d5 commit 9902f2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sparkle/SPUDownloadDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ - (instancetype)initWithRequestURL:(NSURL *)requestURL host:(SUHost *)host userA
_delegate = delegate;
_inBackground = background;

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:requestURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30.0];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:requestURL];
request.cachePolicy = NSURLRequestReloadIgnoringLocalCacheData;

if (userAgent != nil) {
[request setValue:(NSString * _Nonnull)userAgent forHTTPHeaderField:@"User-Agent"];
Expand Down

0 comments on commit 9902f2f

Please sign in to comment.