mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-07 00:33:28 +01:00
HTML bugfix: Incorrect URL resolution on redirected pages (#2315)
This commit is contained in:
@@ -360,8 +360,8 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
|
||||
}
|
||||
var responseWithClient =
|
||||
await sourceRequestStreamResponse('GET', url, reqHeaders, {});
|
||||
HttpClient responseClient = responseWithClient.key;
|
||||
HttpClientResponse response = responseWithClient.value;
|
||||
HttpClient responseClient = responseWithClient.value.key;
|
||||
HttpClientResponse response = responseWithClient.value.value;
|
||||
sink ??= tempDownloadedFile.openWrite(mode: FileMode.writeOnly);
|
||||
|
||||
// Perform the download
|
||||
|
||||
Reference in New Issue
Block a user