From 778379c58599fa6b430a116f79fc815340e5b680 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 10 Feb 2021 17:49:15 -0600 Subject: [PATCH] Bump actix-web to 4.0.0-beta.3 --- Cargo.toml | 10 +++++----- src/lib.rs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2e27499..9dac4be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "actix-webfinger" description = "Types and helpers to create and fetch Webfinger resources" -version = "0.4.0-beta.1" +version = "0.4.0-beta.2" license = "GPL-3.0" authors = ["asonix "] repository = "https://git.asonix.dog/Aardwolf/actix-webfinger" @@ -9,14 +9,14 @@ readme = "README.md" edition = "2018" [dependencies] -actix-rt = "=2.0.0-beta.1" -actix-web = { version = "4.0.0-beta.1", default-features = false } +actix-rt = "2.0.2" +actix-web = { version = "4.0.0-beta.3", default-features = false } serde = "1.0" serde_derive = "1.0" thiserror = "1.0" [dev-dependencies] -actix-rt = "2.0.0-beta.1" -actix-web = { version = "4.0.0-beta.1", features = ["openssl"] } +actix-rt = "2.0.2" +actix-web = { version = "4.0.0-beta.3", features = ["openssl"] } pretty_env_logger = "0.4" serde_json = "1.0" diff --git a/src/lib.rs b/src/lib.rs index 343d359..405b21f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -602,7 +602,7 @@ impl Webfinger { pub fn respond(self) -> HttpResponse { HttpResponse::Ok() .content_type("application/jrd+json") - .json(self) + .json(&self) } /// Fetch a webfinger with subject `user` from a given `domain` @@ -624,7 +624,7 @@ impl Webfinger { let mut res = client .get(url) - .header("Accept", "application/jrd+json") + .append_header(("Accept", "application/jrd+json")) .send() .await .map_err(|_| FetchError::Send)?;