Index: utils/ofhttp/OFHTTP.m ================================================================== --- utils/ofhttp/OFHTTP.m +++ utils/ofhttp/OFHTTP.m @@ -804,10 +804,13 @@ if ([context isEqual: @"detectFileName"]) { _currentFileName = [fileNameFromContentDisposition( [[response headers] objectForKey: @"Content-Disposition"]) copy]; _detectedFileName = true; + + /* Handle this URL on the next -[downloadNextURL] call */ + _URLIndex--; [self performSelector: @selector(downloadNextURL) afterDelay: 0]; return; } @@ -916,13 +919,10 @@ } clientHeaders = [[_clientHeaders mutableCopy] autorelease]; if (_detectFileName && !_detectedFileName) { - /* Handle this URL on the next -[downloadNextURL] call */ - _URLIndex--; - if (!_quiet) [of_stdout writeFormat: @"⠒ %@", [URL string]]; request = [OFHTTPRequest requestWithURL: URL]; [request setHeaders: clientHeaders];