mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added null check for Dropbox download logic
This commit is contained in:
parent
7dc5b4c9d3
commit
e830ffc540
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
|
||||
@ -19,7 +19,7 @@ namespace Wabbajack.Lib.Downloaders
|
||||
if (uri.Host != "www.dropbox.com") return null;
|
||||
var query = HttpUtility.ParseQueryString(uri.Query);
|
||||
|
||||
if (query.GetValues("dl").Length > 0)
|
||||
if (query.GetValues("dl")?.Length > 0)
|
||||
query.Remove("dl");
|
||||
|
||||
query.Set("dl", "1");
|
||||
|
Loading…
Reference in New Issue
Block a user