We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae54c48 commit 9b059a8Copy full SHA for 9b059a8
src/send.rs
@@ -29,15 +29,11 @@ pub async fn send_raw(
29
private_key: &PrivateKey,
30
body: Arc<Vec<u8>>,
31
) -> Result<(), Error> {
32
- let url = reqwest::Url::parse(uri)
33
- .map_err(|_| Error::InvalidUri)?;
34
- let host = format!("{}", url.host().ok_or(Error::InvalidUri)?);
35
let digest_header = digest::generate_header(&body)
36
.map_err(|()| Error::Digest)?;
37
let mut req = http::Request::builder()
38
.method("POST")
39
.uri(uri)
40
- .header("host", &host)
41
.header("content-type", "application/activity+json")
42
.header("date", httpdate::fmt_http_date(SystemTime::now()))
43
.header("digest", digest_header)
0 commit comments