mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix AP security tests
This commit is contained in:
parent
266131e0ca
commit
e7053b1d9d
5 changed files with 36 additions and 17 deletions
|
@ -170,9 +170,11 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
|
|||
|
||||
let headers = options.headers || {}
|
||||
|
||||
headers = { ...headers, date: new Date().toUTCString() }
|
||||
if (!headers.date) {
|
||||
headers = { ...headers, date: new Date().toUTCString() }
|
||||
}
|
||||
|
||||
if (activityPub) {
|
||||
if (activityPub && !headers.accept) {
|
||||
headers = { ...headers, accept: ACTIVITY_PUB.ACCEPT_HEADER }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue