mirror of
https://codeberg.org/Mo8it/git-webhook-client
synced 2024-11-24 11:21:36 +00:00
Add https to base_url
This commit is contained in:
parent
1805ac94d4
commit
0f0e15e392
2 changed files with 3 additions and 3 deletions
|
@ -63,5 +63,5 @@ pub fn trigger(
|
||||||
|
|
||||||
let new_hook_log_id = db::add_hook_log(&db_state.pool, &hook, &output);
|
let new_hook_log_id = db::add_hook_log(&db_state.pool, &hook, &output);
|
||||||
|
|
||||||
format!("{}/{new_hook_log_id}", config_state.base_url_with_https)
|
format!("{}/{}", config_state.base_url, new_hook_log_id)
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ impl DB {
|
||||||
|
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub secret: Vec<u8>,
|
pub secret: Vec<u8>,
|
||||||
pub base_url_with_https: String,
|
pub base_url: String,
|
||||||
pub hooks: Vec<config::Hook>,
|
pub hooks: Vec<config::Hook>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ impl Config {
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
secret: config.secret.as_bytes().to_owned(),
|
secret: config.secret.as_bytes().to_owned(),
|
||||||
base_url_with_https: format!("https://{}", config.base_url),
|
base_url: config.base_url,
|
||||||
hooks: config.hooks,
|
hooks: config.hooks,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue