Skip to content

Commit 3251e7c

Browse files
committed
Override http_util only if not already named 'WasmHTTPUtils'
1 parent 64f3bfa commit 3251e7c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extension/httpfs/httpfs_extension.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ static void LoadInternal(DatabaseInstance &instance) {
6161
// HuggingFace options
6262
config.AddExtensionOption("hf_max_per_page", "Debug option to limit number of items returned in list requests",
6363
LogicalType::UBIGINT, Value::UBIGINT(0));
64-
config.http_util = make_shared_ptr<HTTPFSUtil>();
64+
65+
if (config.http_util && config.http_util->GetName() == "WasmHTTPUtils") {
66+
// Already handled, do not override
67+
} else {
68+
config.http_util = make_shared_ptr<HTTPFSUtil>();
69+
}
6570

6671
auto provider = make_uniq<AWSEnvironmentCredentialsProvider>(config);
6772
provider->SetAll();

0 commit comments

Comments
 (0)