mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix typo: accpet -> accept (#5469)
This commit is contained in:
parent
73d0cfa7cf
commit
57d0377f00
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ function isActivityPubReq(ctx: Router.RouterContext) {
|
|||
}
|
||||
|
||||
export function setResponseType(ctx: Router.RouterContext) {
|
||||
const accpet = ctx.accepts('application/activity+json', 'application/ld+json');
|
||||
if (accpet === 'application/ld+json') {
|
||||
const accept = ctx.accepts('application/activity+json', 'application/ld+json');
|
||||
if (accept === 'application/ld+json') {
|
||||
ctx.response.type = 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"; charset=utf-8';
|
||||
} else {
|
||||
ctx.response.type = 'application/activity+json; charset=utf-8';
|
||||
|
|
Loading…
Reference in a new issue