From 4741d936e07326bea7ff91fb291e5fad9e2631cc Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 20 Feb 2024 17:43:28 +0200 Subject: [PATCH] use relative url --- src/server.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/server.php b/src/server.php index e6e50fd..2c7b376 100644 --- a/src/server.php +++ b/src/server.php @@ -96,11 +96,7 @@ $server->setHandler( ); $response->setMeta( - sprintf( - 'gemini://%s%s/', - $config->geminiapp->server->host, - $config->geminiapp->server->port == 1965 ? null : ':' . $config->geminiapp->server->port - ) + '/' ); break; @@ -479,9 +475,7 @@ $server->setHandler( $response->setMeta( sprintf( - 'gemini://%s%s/?search=%s', - $config->geminiapp->server->host, - $config->geminiapp->server->port == 1965 ? null : ':' . $config->geminiapp->server->port, + '/?search=%s', $request->getQuery() ) );