Debug host

This commit is contained in:
asonix 2020-09-07 15:28:58 -05:00
parent b6e25df717
commit e80ded92f5

View file

@ -83,6 +83,7 @@ impl Requests {
.host() .host()
.ok_or(MyError::Host(url.to_string()))? .ok_or(MyError::Host(url.to_string()))?
.to_string(); .to_string();
debug!("Host: {}", host);
let res = req let res = req
.header("Host", host) .header("Host", host)
.header("Accept", accept) .header("Accept", accept)
@ -135,6 +136,7 @@ impl Requests {
.host() .host()
.ok_or(MyError::Host(url.to_string()))? .ok_or(MyError::Host(url.to_string()))?
.to_string(); .to_string();
debug!("Host: {}", host);
let res = req let res = req
.header("Host", host) .header("Host", host)
.header("Accept", "*/*") .header("Accept", "*/*")
@ -202,6 +204,7 @@ impl Requests {
.host() .host()
.ok_or(MyError::Host(inbox.to_string()))? .ok_or(MyError::Host(inbox.to_string()))?
.to_string(); .to_string();
debug!("Host: {}", host);
let res = req let res = req
.header("Host", host) .header("Host", host)
.header("Accept", "application/activity+json") .header("Accept", "application/activity+json")