From cea2d621f2ff887bfb9074dc7e6bff94d10c04ee Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Mon, 30 Sep 2019 19:00:17 +0900 Subject: [PATCH] Fix typo: accpet -> accept (#5469) --- src/server/activitypub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index 2dbacf5194..6c8a2b915e 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -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';