Skip to content

Commit e79bf9a

Browse files
committed
Fix errors with http response compression
1 parent 2b08034 commit e79bf9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MyTikTokBackup.Desktop/MyTikTokBackup.Desktop/ViewModels/UserDataViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ public UserDataViewModel(IAppConfiguration appConfiguration, IDownloadsManager d
3434
_flurlClient = new FlurlClient()
3535
.WithAutoRedirect(false)
3636
.AllowHttpStatus(new[] { System.Net.HttpStatusCode.Redirect, System.Net.HttpStatusCode.Moved });
37+
3738
_flurlClient2 = new FlurlClient()
38-
.WithHeader("User-Agent", userAgent);
39+
.WithHeader("User-Agent", userAgent)
40+
.WithHeader("Connection", "keep-alive")
41+
.WithHeader("Accept", "*/*")
42+
.WithHeader("Accept-Encoding", "gzip");
3943
_appConfiguration = appConfiguration;
4044
_downloadsManager = downloadsManager;
4145
ImportUserDataFileCommand = new AsyncRelayCommand(ImportUserDataFile);

0 commit comments

Comments
 (0)