fix: primitive 3: validation of non-final url

This commit is contained in:
Laura Hausmann 2024-10-24 04:04:56 +02:00 committed by Julia Johannesen
parent d883934826
commit 9090b745e6
No known key found for this signature in database
GPG key ID: 4A1377AF3E7FBC46
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ export class HttpRequestService {
const finalUrl = res.url; // redirects may have been involved
const activity = await res.json() as IObject;
assertActivityMatchesUrls(activity, [url, finalUrl]);
assertActivityMatchesUrls(activity, [finalUrl]);
return activity;
}

View file

@ -261,7 +261,7 @@ export class ApRequestService {
const finalUrl = res.url; // redirects may have been involved
const activity = await res.json() as IObject;
assertActivityMatchesUrls(activity, [url, finalUrl]);
assertActivityMatchesUrls(activity, [finalUrl]);
return activity;
}