Change the signature of ap_url to be backward-compatible

This commit is contained in:
Bat
2018-06-26 17:32:35 +02:00
parent f58bc1d8f1
commit 9a825e7066
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ lazy_static! {
pub static ref USE_HTTPS: bool = env::var("USE_HTTPS").map(|val| val == "1").unwrap_or(true);
}
pub fn ap_url(url: &str) -> String {
pub fn ap_url(url: String) -> String {
let scheme = if *USE_HTTPS {
"https"
} else {