Fix subscription requests missing Accept header (#10095)

This commit is contained in:
稔君
2026-09-04 10:47:36 +08:00
committed by GitHub
parent 4a59c7f4d6
commit 9451b69246
2 changed files with 7 additions and 1 deletions
@@ -82,7 +82,7 @@ public static class SubscriptionHandler
private static DownloadService CreateDownloadHandler(string hashCode, Func<bool, string, Task> updateFunc)
{
var downloadHandle = new DownloadService();
var downloadHandle = new DownloadService { AcceptHeader = "*/*" };
downloadHandle.Error += (sender2, args) =>
{
updateFunc?.Invoke(false, $"{hashCode}{args.GetException().Message}");