Bump actix-web to 4.0.0-beta.3
This commit is contained in:
parent
3ef0d7b4eb
commit
778379c585
10
Cargo.toml
10
Cargo.toml
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-webfinger"
|
name = "actix-webfinger"
|
||||||
description = "Types and helpers to create and fetch Webfinger resources"
|
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"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
repository = "https://git.asonix.dog/Aardwolf/actix-webfinger"
|
||||||
|
@ -9,14 +9,14 @@ readme = "README.md"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-rt = "=2.0.0-beta.1"
|
actix-rt = "2.0.2"
|
||||||
actix-web = { version = "4.0.0-beta.1", default-features = false }
|
actix-web = { version = "4.0.0-beta.3", default-features = false }
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "2.0.0-beta.1"
|
actix-rt = "2.0.2"
|
||||||
actix-web = { version = "4.0.0-beta.1", features = ["openssl"] }
|
actix-web = { version = "4.0.0-beta.3", features = ["openssl"] }
|
||||||
pretty_env_logger = "0.4"
|
pretty_env_logger = "0.4"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
|
|
@ -602,7 +602,7 @@ impl Webfinger {
|
||||||
pub fn respond(self) -> HttpResponse {
|
pub fn respond(self) -> HttpResponse {
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
.content_type("application/jrd+json")
|
.content_type("application/jrd+json")
|
||||||
.json(self)
|
.json(&self)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Fetch a webfinger with subject `user` from a given `domain`
|
/// Fetch a webfinger with subject `user` from a given `domain`
|
||||||
|
@ -624,7 +624,7 @@ impl Webfinger {
|
||||||
|
|
||||||
let mut res = client
|
let mut res = client
|
||||||
.get(url)
|
.get(url)
|
||||||
.header("Accept", "application/jrd+json")
|
.append_header(("Accept", "application/jrd+json"))
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
.map_err(|_| FetchError::Send)?;
|
.map_err(|_| FetchError::Send)?;
|
||||||
|
|
Loading…
Reference in a new issue