Change the signature of ap_url to be backward-compatible
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user