diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 13:15:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-30 13:15:25 +0100 |
commit | 1b5b10d13152d704d2396a1e53d56aba1a8e7e03 (patch) | |
tree | 32e3dab1590cc909e2100fdc9aedd905cd7778f0 /server/initializers | |
parent | 6cbdbdef1786aabb2003918fad6cd8c0d4433f7c (diff) | |
download | PeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.tar.gz PeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.tar.zst PeerTube-1b5b10d13152d704d2396a1e53d56aba1a8e7e03.zip |
Fix activitypub check headers
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 8f278fb0b..4f63cbb02 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -220,11 +220,11 @@ const VIDEO_MIMETYPE_EXT = { | |||
220 | const SERVER_ACCOUNT_NAME = 'peertube' | 220 | const SERVER_ACCOUNT_NAME = 'peertube' |
221 | 221 | ||
222 | const ACTIVITY_PUB = { | 222 | const ACTIVITY_PUB = { |
223 | ACCEPT_HEADERS: [ | 223 | POTENTIAL_ACCEPT_HEADERS: [ |
224 | 'application/activity+json, application/ld+json', | 224 | 'application/activity+json', |
225 | 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' | 225 | 'application/ld+json' |
226 | ], | 226 | ], |
227 | ACCEPT_HEADER: '', | 227 | ACCEPT_HEADER: 'application/activity+json, application/ld+json', |
228 | PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', | 228 | PUBLIC: 'https://www.w3.org/ns/activitystreams#Public', |
229 | COLLECTION_ITEMS_PER_PAGE: 10, | 229 | COLLECTION_ITEMS_PER_PAGE: 10, |
230 | FETCH_PAGE_LIMIT: 100, | 230 | FETCH_PAGE_LIMIT: 100, |
@@ -235,7 +235,6 @@ const ACTIVITY_PUB = { | |||
235 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] | 235 | MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] |
236 | } | 236 | } |
237 | } | 237 | } |
238 | ACTIVITY_PUB.ACCEPT_HEADER = ACTIVITY_PUB.ACCEPT_HEADERS[0] | ||
239 | 238 | ||
240 | // --------------------------------------------------------------------------- | 239 | // --------------------------------------------------------------------------- |
241 | 240 | ||