revert redundant host checks in ApResolver #47
1 changed files with 2 additions and 6 deletions
|
@ -129,12 +129,8 @@ export class Resolver {
|
|||
throw new Error('invalid AP object: missing id');
|
||||
}
|
||||
|
||||
const idURL = yumeAssertAcceptableURL(object.id);
|
||||
const valueURL = yumeAssertAcceptableURL(value);
|
||||
|
||||
if (toASCII(idURL.host) !== toASCII(valueURL.host)) {
|
||||
throw new Bull.UnrecoverableError(`invalid AP object ${value}: id ${object.id} has different host`);
|
||||
}
|
||||
yumeAssertAcceptableURL(object.id);
|
||||
yumeAssertAcceptableURL(value);
|
||||
|
||||
return object;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue