|
@ -109,8 +109,6 @@ impl<'a, 'r> FromRequest<'a, 'r> for Headers { |
|
|
fn from_request(request: &'a Request<'r>) -> request::Outcome<Self, Self::Error> { |
|
|
fn from_request(request: &'a Request<'r>) -> request::Outcome<Self, Self::Error> { |
|
|
let headers = request.headers(); |
|
|
let headers = request.headers(); |
|
|
|
|
|
|
|
|
println!("{:#?}", headers); |
|
|
|
|
|
|
|
|
|
|
|
// Get host
|
|
|
// Get host
|
|
|
let host = if CONFIG.domain_set { |
|
|
let host = if CONFIG.domain_set { |
|
|
CONFIG.domain.clone() |
|
|
CONFIG.domain.clone() |
|
|