fix: var replace with ${...}

This commit is contained in:
əlemi 2024-10-19 03:58:43 +02:00
parent fe7bc43c57
commit 9013515290
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -85,7 +85,7 @@ fn replace_recursive(element: toml::Value, from: &str, to: &str) -> toml::Value
impl Endpoint {
pub fn fill(mut self) -> Self {
for (k, v) in std::env::vars() {
let k_var = format!("${k}");
let k_var = format!("${{{k}}}");
self.url = self.url.replace(&k_var, &v);
if let Some(method) = self.method {
self.method = Some(method.replace(&k_var, &v));