From c46496b966600d7a7ecec3a653fbd76e0e1e43b3 Mon Sep 17 00:00:00 2001

From: Mike Cifelli admin@mike.cifelli.xyz

Date: Sat, 8 Jul 2023 14:16:26 -0400

Subject: [PATCH 1/1] Fix replacement paths


gmcapsule/gemini.py | 1 +

gmcapsule/modules/10_rewrite.py | 4 +++-

2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/gmcapsule/gemini.py b/gmcapsule/gemini.py

index 08e0752..18a2ff2 100644

--- a/gmcapsule/gemini.py

+++ b/gmcapsule/gemini.py

@@ -786,6 +786,7 @@ class RequestHandler(mp.Process):

 def _run(self):

     self.context = Context(self.cfg)

     self.context.load_modules()

     # Wait for request processing jobs.

     try:

diff --git a/gmcapsule/modules/10_rewrite.py b/gmcapsule/modules/10_rewrite.py

index 313c6e8..a7be487 100644

--- a/gmcapsule/modules/10_rewrite.py

+++ b/gmcapsule/modules/10_rewrite.py

@@ -24,7 +24,9 @@ class PathRewriteHandler:

         return 40, "Stuck in rewrite loop: " + req.url()

     self.context.print("[rewrite]", old_path, "->", req.path)

class Responder:

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/gmcapsule/main/patch/d671c1a615160c0347ba4312e5705da6c86309fd.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
25.678995 milliseconds
Gemini-to-HTML Time
0.821801 milliseconds

This content has been proxied by September (ba2dc).