@@ -279,7 +279,7 @@ void TimestampToTimeT(timestamp_t timestamp, time_t &result) {
279279HTTPFileHandle::HTTPFileHandle (FileSystem &fs, const OpenFileInfo &file, FileOpenFlags flags,
280280 unique_ptr<HTTPParams> params_p)
281281 : FileHandle(fs, file.path, flags), params(std::move(params_p)), http_params(params->Cast<HTTPFSParams>()),
282- flags (flags), length(0 ), direct_complete_download (false ), buffer_available(0 ), buffer_idx(0 ), file_offset(0 ), buffer_start(0 ), buffer_end(0 ) {
282+ flags (flags), length(0 ), force_full_download (false ), buffer_available(0 ), buffer_idx(0 ), file_offset(0 ), buffer_start(0 ), buffer_end(0 ) {
283283 // check if the handle has extended properties that can be set directly in the handle
284284 // if we have these properties we don't need to do a head request to obtain them later
285285 if (file.extended_info ) {
@@ -298,7 +298,7 @@ HTTPFileHandle::HTTPFileHandle(FileSystem &fs, const OpenFileInfo &file, FileOpe
298298 }
299299 auto direct_complete_download_entry = info.find (" direct_complete_download" );
300300 if (direct_complete_download_entry != info.end ()) {
301- direct_complete_download = direct_complete_download_entry->second .GetValue <bool >();
301+ force_full_download = direct_complete_download_entry->second .GetValue <bool >();
302302 }
303303 if (lm_entry != info.end () && etag_entry != info.end () && fs_entry != info.end ()) {
304304 // we found all relevant entries (last_modified, etag and file size)
@@ -599,7 +599,7 @@ optional_idx TryParseContentLength(const HTTPHeaders &headers) {
599599}
600600
601601void HTTPFileHandle::LoadFileInfo () {
602- if (initialized || direct_complete_download ) {
602+ if (initialized || force_full_download ) {
603603 // already initialized or we specifically do not want to perform a head request and just run a direct download
604604 return ;
605605 }
@@ -689,7 +689,7 @@ void HTTPFileHandle::Initialize(optional_ptr<FileOpener> opener) {
689689 LoadFileInfo ();
690690
691691 if (flags.OpenForReading ()) {
692- if ((http_params.state && length == 0 ) || direct_complete_download ) {
692+ if ((http_params.state && length == 0 ) || force_full_download ) {
693693 FullDownload (hfs, should_write_cache);
694694 }
695695 if (should_write_cache) {
0 commit comments