mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-12 04:19:25 +02:00
Bugfix in RDAP
This commit is contained in:
parent
db6a01d3b3
commit
6ef844a04a
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ $http->on('request', function ($request, $response) use ($c, $pdo) {
|
||||||
$response->status(404);
|
$response->status(404);
|
||||||
$response->end(json_encode(['error' => 'Object not found']));
|
$response->end(json_encode(['error' => 'Object not found']));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$response->header('Content-Type', 'application/json');
|
||||||
|
$response->status(404);
|
||||||
|
$response->end(json_encode(['error' => 'Object not found']));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Handle entity search query
|
// Handle entity search query
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue