Skip to content

Commit

Permalink
Change https_only to enforce_https
Browse files Browse the repository at this point in the history
  • Loading branch information
jjant authored and djc committed May 23, 2023
1 parent 4e697ec commit a407b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ impl<T> HttpsConnector<T> {
/// Force the use of HTTPS when connecting.
///
/// If a URL is not `https` when connecting, an error is returned.
pub fn https_only(&mut self, enable: bool) {
self.force_https = enable;
pub fn enforce_https(&mut self) {
self.force_https = true;
}
}

Expand Down

0 comments on commit a407b89

Please sign in to comment.