From 70816a47793cafbb2e786b805b6061dd0be1ec0a Mon Sep 17 00:00:00 2001 From: Felix Date: Wed, 22 Apr 2020 20:56:31 +0200 Subject: [PATCH] Fix header guard for apub responses --- server/src/routes/federation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/federation.rs b/server/src/routes/federation.rs index 3a14cbc2e..eeae1fa26 100644 --- a/server/src/routes/federation.rs +++ b/server/src/routes/federation.rs @@ -12,7 +12,7 @@ pub fn config(cfg: &mut web::ServiceConfig) { cfg .service( web::scope("/") - .guard(guard::Header("Content-Type", APUB_JSON_CONTENT_TYPE)) + .guard(guard::Header("Accept", APUB_JSON_CONTENT_TYPE)) .route( "/c/{community_name}", web::get().to(get_apub_community_http),