We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acc9f41 commit c62ab39Copy full SHA for c62ab39
datafusion-cli/src/object_storage.rs
@@ -32,7 +32,7 @@ use aws_credential_types::provider::ProvideCredentials;
32
use object_store::aws::{AmazonS3Builder, AwsCredential};
33
use object_store::gcp::GoogleCloudStorageBuilder;
34
use object_store::http::HttpBuilder;
35
-use object_store::{CredentialProvider, ObjectStore};
+use object_store::{ClientOptions, CredentialProvider, ObjectStore};
36
use url::Url;
37
38
pub async fn get_s3_object_store_builder(
@@ -437,6 +437,7 @@ pub(crate) async fn get_object_store(
437
}
438
"http" | "https" => Arc::new(
439
HttpBuilder::new()
440
+ .with_client_options(ClientOptions::new().with_allow_http(true))
441
.with_url(url.origin().ascii_serialization())
442
.build()?,
443
),
0 commit comments