Fix header guard for apub responses
This commit is contained in:
parent
abce364196
commit
3162cb580e
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ pub fn config(cfg: &mut web::ServiceConfig) {
|
||||||
cfg
|
cfg
|
||||||
.service(
|
.service(
|
||||||
web::scope("/")
|
web::scope("/")
|
||||||
.guard(guard::Header("Content-Type", APUB_JSON_CONTENT_TYPE))
|
.guard(guard::Header("Accept", APUB_JSON_CONTENT_TYPE))
|
||||||
.route(
|
.route(
|
||||||
"/c/{community_name}",
|
"/c/{community_name}",
|
||||||
web::get().to(get_apub_community_http),
|
web::get().to(get_apub_community_http),
|
||||||
|
|
Loading…
Reference in a new issue