Skip to content

Commit

Permalink
Update HttpUtil.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Dec 31, 2023
1 parent df576b4 commit bf7e463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WPF/GeneralUpdate.Packet/Utils/HttpUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static async Task PostTaskAsync<T>(string httpUrl, Dictionary<string, str
content.Add(stringContent, parameter.Key);
}

if (string.IsNullOrWhiteSpace(filePath) && File.Exists(filePath))
if (!string.IsNullOrWhiteSpace(filePath) && File.Exists(filePath))
{
var fileStream = File.OpenRead(filePath);
var fileInfo = new FileInfo(filePath);
Expand Down

0 comments on commit bf7e463

Please sign in to comment.