@@ -109,11 +109,11 @@ @"-q --quiet " @" Quiet mode (no output, except errors)\n " @"-v --verbose " @" Verbose mode (print headers)\n " @" --insecure " - @" Ignore TLS errors")]; + @" Ignore TLS errors and allow insecure redirects")]; } [OFApplication terminateWithStatus: status]; } @@ -495,10 +495,13 @@ @"has been specified!", @"prog", [OFApplication programName])]; [OFApplication terminateWithStatus: 1]; } + if (_insecure) + [_HTTPClient setInsecureRedirectsAllowed: true]; + [self performSelector: @selector(downloadNextURL) afterDelay: 0]; } - (void)client: (OFHTTPClient *)client