Skip to content

Commit 9b059a8

Browse files
committed
1 parent ae54c48 commit 9b059a8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/send.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,11 @@ pub async fn send_raw(
2929
private_key: &PrivateKey,
3030
body: Arc<Vec<u8>>,
3131
) -> Result<(), Error> {
32-
let url = reqwest::Url::parse(uri)
33-
.map_err(|_| Error::InvalidUri)?;
34-
let host = format!("{}", url.host().ok_or(Error::InvalidUri)?);
3532
let digest_header = digest::generate_header(&body)
3633
.map_err(|()| Error::Digest)?;
3734
let mut req = http::Request::builder()
3835
.method("POST")
3936
.uri(uri)
40-
.header("host", &host)
4137
.header("content-type", "application/activity+json")
4238
.header("date", httpdate::fmt_http_date(SystemTime::now()))
4339
.header("digest", digest_header)

0 commit comments

Comments
 (0)