Bump actix-web to 4.0.0-beta.3

This commit is contained in:
asonix 2021-02-10 17:49:15 -06:00
parent 3ef0d7b4eb
commit 778379c585
2 changed files with 7 additions and 7 deletions

View file

@ -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 <asonix@asonix.dog>"]
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"

View file

@ -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)?;