]> Untitled Git - lemmy.git/commitdiff
Fix header guard for apub responses
authorFelix <me@nutomic.com>
Wed, 22 Apr 2020 18:56:31 +0000 (20:56 +0200)
committerFelix <me@nutomic.com>
Wed, 22 Apr 2020 18:56:31 +0000 (20:56 +0200)
server/src/routes/federation.rs

index 3a14cbc2ea6b2536f31404ef0181f482e5a60540..eeae1fa26dc69916c036c6b41bf3fc163ff8354d 100644 (file)
@@ -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),