Skip to content

Commit bf7e463

Browse files
committed
Update HttpUtil.cs
1 parent df576b4 commit bf7e463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WPF/GeneralUpdate.Packet/Utils/HttpUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static async Task PostTaskAsync<T>(string httpUrl, Dictionary<string, str
1818
content.Add(stringContent, parameter.Key);
1919
}
2020

21-
if (string.IsNullOrWhiteSpace(filePath) && File.Exists(filePath))
21+
if (!string.IsNullOrWhiteSpace(filePath) && File.Exists(filePath))
2222
{
2323
var fileStream = File.OpenRead(filePath);
2424
var fileInfo = new FileInfo(filePath);

0 commit comments

Comments
 (0)