diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 12:53:22 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-24 12:53:22 +0900 |
| commit | 9b79a411e0d0ecd57c52f0878d2873f925eebc4f (patch) | |
| tree | 4ffe7b6376f35fc2620459669a407612f8f70ce6 /src/remote | |
| parent | Improve doc (diff) | |
| download | sharkey-9b79a411e0d0ecd57c52f0878d2873f925eebc4f.tar.gz sharkey-9b79a411e0d0ecd57c52f0878d2873f925eebc4f.tar.bz2 sharkey-9b79a411e0d0ecd57c52f0878d2873f925eebc4f.zip | |
Use camelCase
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/request.ts | 2 | ||||
| -rw-r--r-- | src/remote/activitypub/resolver.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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 |