Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-16 04:12:53 +01:00
make headers use hostinfo
Dieser Commit ist enthalten in:
Ursprung
ac3c1d41b2
Commit
6867099291
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -471,7 +471,7 @@ impl<'r> FromRequest<'r> for Headers {
|
|||
async fn from_request(request: &'r Request<'_>) -> Outcome<Self, Self::Error> {
|
||||
let headers = request.headers();
|
||||
|
||||
let base_url = try_outcome!(BaseURL::from_request(request).await).base_url;
|
||||
let base_url = try_outcome!(HostInfo::from_request(request).await).base_url;
|
||||
let ip = match ClientIp::from_request(request).await {
|
||||
Outcome::Success(ip) => ip,
|
||||
_ => err_handler!("Error getting Client IP"),
|
||||
|
|
Laden …
In neuem Issue referenzieren