Skip to content

Commit c62ab39

Browse files
authored
allow http in datafusion-cli http object store (#13626)
* allow http in datafusion-cli http object store * fix * remove http2
1 parent acc9f41 commit c62ab39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion-cli/src/object_storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use aws_credential_types::provider::ProvideCredentials;
3232
use object_store::aws::{AmazonS3Builder, AwsCredential};
3333
use object_store::gcp::GoogleCloudStorageBuilder;
3434
use object_store::http::HttpBuilder;
35-
use object_store::{CredentialProvider, ObjectStore};
35+
use object_store::{ClientOptions, CredentialProvider, ObjectStore};
3636
use url::Url;
3737

3838
pub async fn get_s3_object_store_builder(
@@ -437,6 +437,7 @@ pub(crate) async fn get_object_store(
437437
}
438438
"http" | "https" => Arc::new(
439439
HttpBuilder::new()
440+
.with_client_options(ClientOptions::new().with_allow_http(true))
440441
.with_url(url.origin().ascii_serialization())
441442
.build()?,
442443
),

0 commit comments

Comments
 (0)