diff options
Diffstat (limited to 'src/zenhttp/clients/httpclientcpr.cpp')
| -rw-r--r-- | src/zenhttp/clients/httpclientcpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/clients/httpclientcpr.cpp b/src/zenhttp/clients/httpclientcpr.cpp index 333fd20b0..66a4ce16f 100644 --- a/src/zenhttp/clients/httpclientcpr.cpp +++ b/src/zenhttp/clients/httpclientcpr.cpp @@ -979,7 +979,7 @@ CprHttpClient::Download(std::string_view Url, const std::filesystem::path& TempF std::optional<size_t> ContentLength = ParseInt<size_t>(Header.second); if (ContentLength.has_value()) { - if (ContentLength.value() > 1024 * 1024) + if (ContentLength.value() > m_ConnectionSettings.MaximumInMemoryDownloadSize) { PayloadFile = std::make_unique<detail::TempPayloadFile>(); std::error_code Ec = PayloadFile->Open(TempFolderPath, ContentLength.value()); |