Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Dec 3, 2024
1 parent a3db536 commit dd1cb0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion-cli/src/object_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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()?,
),
Expand Down

0 comments on commit dd1cb0e

Please sign in to comment.