2023-06-27

This commit is contained in:
2023-06-27 23:29:38 +08:00
parent fa7c6887c0
commit 71d2baca54
2 changed files with 4 additions and 1 deletions
@@ -153,7 +153,7 @@ namespace WebAPI.Controllers
HttpClient _httpClient = new HttpClient();
try
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
// System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
// 发送 GET 请求以获取文件内容
var response = await _httpClient.GetAsync(toDoItem.UrlStr);
response.EnsureSuccessStatusCode();