diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 13:37:11 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 13:37:11 +0100 |
commit | 4f49137101a665f6a76bd8159a175a2aa680af96 (patch) | |
tree | 97f4956a2ae4642fefbd67f2839f4ab525e00821 /server/initializers/constants.ts | |
parent | 6cae49d26299b22ed879156ba5b8fb68a34e3713 (diff) | |
download | PeerTube-4f49137101a665f6a76bd8159a175a2aa680af96.tar.gz PeerTube-4f49137101a665f6a76bd8159a175a2aa680af96.tar.zst PeerTube-4f49137101a665f6a76bd8159a175a2aa680af96.zip |
Fix req accepts
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 4f63cbb02..e3d779456 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -316,6 +316,8 @@ const CACHE = { | |||
316 | } | 316 | } |
317 | } | 317 | } |
318 | 318 | ||
319 | const ACCEPT_HEADERS = ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.concat('html', 'application/json') | ||
320 | |||
319 | // --------------------------------------------------------------------------- | 321 | // --------------------------------------------------------------------------- |
320 | 322 | ||
321 | const OPENGRAPH_AND_OEMBED_COMMENT = '<!-- open graph and oembed tags -->' | 323 | const OPENGRAPH_AND_OEMBED_COMMENT = '<!-- open graph and oembed tags -->' |
@@ -336,6 +338,7 @@ if (isTestInstance() === true) { | |||
336 | 338 | ||
337 | export { | 339 | export { |
338 | API_VERSION, | 340 | API_VERSION, |
341 | ACCEPT_HEADERS, | ||
339 | BCRYPT_SALT_SIZE, | 342 | BCRYPT_SALT_SIZE, |
340 | CACHE, | 343 | CACHE, |
341 | CONFIG, | 344 | CONFIG, |