From: Felix Date: Wed, 22 Apr 2020 18:56:31 +0000 (+0200) Subject: Fix header guard for apub responses X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%7BpictshareAvatarThumbnail%28?a=commitdiff_plain;h=70816a47793cafbb2e786b805b6061dd0be1ec0a;p=lemmy.git Fix header guard for apub responses --- diff --git a/server/src/routes/federation.rs b/server/src/routes/federation.rs index 3a14cbc2..eeae1fa2 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),