HTTP: Added STALWART_BASE_URL to override the base URL used in HTTP responses

This commit is contained in:
Maurus Decimus
2026-04-21 13:59:38 +02:00
parent ab0cfd5bad
commit 0fac0754e5
8 changed files with 31 additions and 15 deletions

View File

@@ -33,14 +33,7 @@ impl<'x> HttpContext<'x> {
} else {
#[cfg(not(any(feature = "dev_mode", feature = "test_mode")))]
{
if !server.registry().is_bootstrap_mode() {
format!(
"{}:{}",
server.core.network.http.url_http, self.session.local_port
)
} else {
server.core.network.http.url_http.clone()
}
server.core.network.http.url_http.clone()
}
#[cfg(any(feature = "dev_mode", feature = "test_mode"))]