mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
rfc7033 compliance changes (expected HTML error code for two error conditions unintentionally reversed)
This commit is contained in:
parent
77dd76a5af
commit
198326d2c1
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class Webfinger extends Controller
|
|||
$resource = $_REQUEST['resource'];
|
||||
|
||||
if (!$resource) {
|
||||
http_status_exit(404, 'Not found');
|
||||
http_status_exit(400, 'Bad request');
|
||||
}
|
||||
|
||||
logger('webfinger: ' . $resource, LOGGER_DEBUG);
|
||||
|
@ -205,7 +205,7 @@ class Webfinger extends Controller
|
|||
}
|
||||
|
||||
if (!$result) {
|
||||
header($_SERVER['SERVER_PROTOCOL'] . ' ' . 400 . ' ' . 'Bad Request');
|
||||
header($_SERVER['SERVER_PROTOCOL'] . ' ' . 404 . ' ' . 'Not found');
|
||||
killme();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue