From 9b79a411e0d0ecd57c52f0878d2873f925eebc4f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 24 Feb 2019 12:53:22 +0900 Subject: Use camelCase --- src/remote/activitypub/request.ts | 2 +- src/remote/activitypub/resolver.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remote/activitypub') diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index df8eced13d..a921972398 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -45,7 +45,7 @@ export default (user: ILocalUser, url: string, object: any) => new Promise(async timeout, headers: { 'Host': host, - 'User-Agent': config.user_agent, + 'User-Agent': config.userAgent, 'Content-Type': 'application/activity+json', 'Digest': `SHA-256=${hash}` } diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 049e645e47..113b2c4e4f 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -60,7 +60,7 @@ export default class Resolver { proxy: config.proxy, timeout: this.timeout, headers: { - 'User-Agent': config.user_agent, + 'User-Agent': config.userAgent, Accept: 'application/activity+json, application/ld+json' }, json: true -- cgit v1.2.3-freya