Remove excessive content_type header configuration (#3470)

pull/3458/head
perillamint 2023-07-04 02:43:45 +09:00 committed by GitHub
parent 935b0bf048
commit 696cca4ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -48,7 +48,6 @@ where
Ok(
HttpResponse::Ok()
.content_type(FEDERATION_CONTENT_TYPE)
.content_type("application/activity+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)
.content_type("application/activity+json")
.body(json),
)
}