Skip to content

Commit

Permalink
Remove not needed anymore http-signature-normalization-actix dependen…
Browse files Browse the repository at this point in the history
…cy (#3458)
  • Loading branch information
pijuszczyk committed Jul 4, 2023
1 parent f0e487f commit bf62fbe
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
34 changes: 2 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/apub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ reqwest = { workspace = true }
once_cell = { workspace = true }
html2md = "0.2.14"
serde_with = { workspace = true }
http-signature-normalization-actix = { version = "0.6.2", default-features = false, features = ["server", "sha-2"] }
enum_delegate = "0.2.0"

[dev-dependencies]
Expand Down
3 changes: 0 additions & 3 deletions crates/apub/src/http/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use actix_web::{
http::{header, Method},
web,
};
use http_signature_normalization_actix::digest::middleware::VerifyDigest;
use sha2::{Digest, Sha256};

pub fn config(cfg: &mut web::ServiceConfig) {
cfg
Expand Down Expand Up @@ -57,7 +55,6 @@ pub fn config(cfg: &mut web::ServiceConfig) {

cfg.service(
web::scope("")
.wrap(VerifyDigest::new(Sha256::new()))
.guard(InboxRequestGuard)
.route("/c/{community_name}/inbox", web::post().to(community_inbox))
.route("/u/{user_name}/inbox", web::post().to(person_inbox))
Expand Down

0 comments on commit bf62fbe

Please sign in to comment.