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()
self.context.set_quiet(False)
# 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)
return self.context.call_entrypoint(req)[0]
status, meta, path, _ = self.context.call_entrypoint(req)
return (status, meta, path)
class Responder:
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).