More RST preparations

This commit is contained in:
Pinga 2025-04-29 12:00:28 +03:00
parent ebe8982b00
commit 3d3ffe46d5
3 changed files with 22 additions and 10 deletions

View file

@ -973,6 +973,7 @@ function handleEntityQuery($request, $response, $pdo, $entityHandle, $c, $log) {
'links' => [
[
'href' => $c['rdap_url'] . '/entity/' . ($registrarDetails['iana_id'] ?: $registrarDetails['id']),
'value' => $c['rdap_url'] . '/entity/' . ($registrarDetails['iana_id'] ?: $registrarDetails['id']),
'rel' => 'self',
'type' => 'application/rdap+json',
]
@ -2892,6 +2893,7 @@ function handleEntitySearchQuery($request, $response, $pdo, $searchPattern, $c,
'links' => [
[
'href' => $c['rdap_url'] . '/entity/' . ($registrarDetails['iana_id'] ?: $registrarDetails['id']),
'value' => $c['rdap_url'] . '/entity/' . ($registrarDetails['iana_id'] ?: $registrarDetails['id']),
'rel' => 'self',
'type' => 'application/rdap+json',
]