From 3162cb580e00e6cae3a85ce6ed6be1c534a2ffda 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),