From dd1cb0e2b2af5d96d6008558bb58bdf8a991ba0b Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:31:26 -0800 Subject: [PATCH] fix --- datafusion-cli/src/object_storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion-cli/src/object_storage.rs b/datafusion-cli/src/object_storage.rs index 8868f07d30f3..e52a48a53cdd 100644 --- a/datafusion-cli/src/object_storage.rs +++ b/datafusion-cli/src/object_storage.rs @@ -32,7 +32,7 @@ use aws_credential_types::provider::ProvideCredentials; use object_store::aws::{AmazonS3Builder, AwsCredential}; use object_store::gcp::GoogleCloudStorageBuilder; use object_store::http::HttpBuilder; -use object_store::{CredentialProvider, ObjectStore}; +use object_store::{ClientOptions, CredentialProvider, ObjectStore}; use url::Url; pub async fn get_s3_object_store_builder( @@ -437,7 +437,7 @@ pub(crate) async fn get_object_store( } "http" | "https" => Arc::new( HttpBuilder::new() - .with_allow_http(true) + .with_client_options(ClientOptions::new().with_allow_http(true).with_allow_http2()) .with_url(url.origin().ascii_serialization()) .build()?, ),