mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Bugfixes
This commit is contained in:
parent
0f07ca94a3
commit
26596bb987
|
|
@ -95,7 +95,7 @@ export const createServer = (
|
|||
|
||||
if (config.logging.log_requests) {
|
||||
await logger.logRequest(
|
||||
req,
|
||||
req.clone(),
|
||||
config.logging.log_ip ? request_ip : undefined,
|
||||
config.logging.log_requests_verbose,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default apiRoute<{
|
|||
try {
|
||||
const redirect_uri = new URL(redirect_uris);
|
||||
|
||||
if (!redirect_uri.protocol.startsWith("http")) {
|
||||
if (redirect_uri.origin === "null") {
|
||||
return errorResponse(
|
||||
"Redirect URI must be an absolute URI",
|
||||
422,
|
||||
|
|
|
|||
Loading…
Reference in a new issue