]> Untitled Git - lemmy.git/commitdiff
Remove excessive content_type header configuration (#3470)
authorperillamint <perillamint@users.noreply.github.com>
Mon, 3 Jul 2023 17:43:45 +0000 (02:43 +0900)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 17:43:45 +0000 (13:43 -0400)
crates/apub/src/http/mod.rs

index 947a56adc707ee7bab74927a733655d8e666ade0..66d5a0f9fc3240d52b782d0abe753a0c941d0645 100644 (file)
@@ -48,7 +48,6 @@ where
   Ok(
     HttpResponse::Ok()
       .content_type(FEDERATION_CONTENT_TYPE)
   Ok(
     HttpResponse::Ok()
       .content_type(FEDERATION_CONTENT_TYPE)
-      .content_type("application/activity+json")
       .body(json),
   )
 }
       .body(json),
   )
 }
@@ -61,7 +60,6 @@ fn create_apub_tombstone_response<T: Into<Url>>(id: T) -> LemmyResult<HttpRespon
     HttpResponse::Gone()
       .content_type(FEDERATION_CONTENT_TYPE)
       .status(StatusCode::GONE)
     HttpResponse::Gone()
       .content_type(FEDERATION_CONTENT_TYPE)
       .status(StatusCode::GONE)
-      .content_type("application/activity+json")
       .body(json),
   )
 }
       .body(json),
   )
 }