Skip to content

Commit

Permalink
Allow use https as scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Jul 19, 2022
1 parent b77633e commit 9794af5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub enum Scheme {
/// [hdfs][crate::services::hdfs]: Hadoop Distributed File System.
#[cfg(feature = "services-hdfs")]
Hdfs,
/// [http][crate::services::http]: HTTP read-only backend.
/// [http][crate::services::http]: HTTP backend.
#[cfg(feature = "services-http")]
Http,
/// [memory][crate::services::memory]: In memory backend support.
Expand Down Expand Up @@ -71,6 +71,8 @@ impl FromStr for Scheme {
"fs" => Ok(Scheme::Fs),
#[cfg(feature = "services-hdfs")]
"hdfs" => Ok(Scheme::Hdfs),
#[cfg(feature = "services-http")]
"http" | "https" => Ok(Scheme::Http),
"memory" => Ok(Scheme::Memory),
"s3" => Ok(Scheme::S3),
v => Err(other(BackendError::new(
Expand Down

1 comment on commit 9794af5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for opendal ready!

✅ Preview
https://opendal-1f2ttstht-databend.vercel.app

Built with commit 9794af5.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.