Commit Diff


commit - 66900cf43f558dfabefba02c555cb193fe362f48
commit + 4e5d15550233b0836ae2162309030b4ebf00df51
blob - 0e46f850aedb624315d4fff5d5c030d9c0963edc
blob + e8d2d5e05e993e5bacbb12ebe022ecb0ffc2bf5c
--- yah2g.py
+++ yah2g.py
@@ -107,7 +107,7 @@ class _RequestHandler(BaseHTTPRequestHandler):
                 return
 
             try:
-                for _ in range(32):
+                for _ in range(6): # first request + 5 consecutive redirects
                     parsed = urlparse(url)
                     if parsed.scheme != "gemini":
                         self.send_error(HTTPStatus.BAD_REQUEST, "Only gemini:// URLs are supported")