HTTP: Added STALWART_BASE_URL to override the base URL used in HTTP responses
This commit is contained in:
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user