From e2db0d1f994de3f447fca2e29429574bb1c83a17 Mon Sep 17 00:00:00 2001 From: Georgy Treshchev Date: Tue, 23 Feb 2021 16:42:49 +0100 Subject: [PATCH] 4.26.1 update --- .../Private/RuntimeFilesDownloaderLibrary.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RuntimeFilesDownloader/Source/RuntimeFilesDownloader/Private/RuntimeFilesDownloaderLibrary.cpp b/RuntimeFilesDownloader/Source/RuntimeFilesDownloader/Private/RuntimeFilesDownloaderLibrary.cpp index 9793c50..12bc1fb 100644 --- a/RuntimeFilesDownloader/Source/RuntimeFilesDownloader/Private/RuntimeFilesDownloaderLibrary.cpp +++ b/RuntimeFilesDownloader/Source/RuntimeFilesDownloader/Private/RuntimeFilesDownloaderLibrary.cpp @@ -30,11 +30,10 @@ URuntimeFilesDownloaderLibrary* URuntimeFilesDownloaderLibrary::DownloadFile(con FileUrl = URL; FileSavePath = SavePath; - TSharedRef< IHttpRequest > HttpRequest = FHttpModule::Get().CreateRequest(); + TSharedRef< IHttpRequest, ESPMode::ThreadSafe > HttpRequest = FHttpModule::Get().CreateRequest(); HttpRequest->SetVerb("GET"); HttpRequest->SetURL(URL); - HttpRequest->SetHeader("Content-Type", TEXT("application/octet-stream")); HttpRequest->OnProcessRequestComplete().BindUObject(this, &URuntimeFilesDownloaderLibrary::OnReady_Internal); HttpRequest->OnRequestProgress().BindUObject(this, &URuntimeFilesDownloaderLibrary::OnProgress_Internal);