We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5e939 commit 3c5e50eCopy full SHA for 3c5e50e
crates/control_plane/src/models/mod.rs
@@ -273,6 +273,11 @@ impl StorageProfile {
273
274
if let Some(endpoint) = &self.endpoint {
275
builder = builder.with_endpoint(endpoint.clone());
276
+
277
+ let url = Url::parse(endpoint).context(error::InvalidEndpointUrlSnafu {
278
+ url: endpoint.clone(),
279
+ })?;
280
+ builder = builder.with_allow_http(url.scheme() == "http");
281
}
282
283
if let Some(credentials) = &self.credentials {
0 commit comments