mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 15:39:11 +00:00
Fix header guard for apub responses
This commit is contained in:
parent
92e30311ce
commit
70816a4779
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue