From fbd88971b522feb0f97a8b8bbeb22b6ec28bc516 Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Fri, 24 Apr 2026 15:43:39 -0400 Subject: [PATCH] chore: fix redirect loop --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d755b9c..acb744b 100644 --- a/main.go +++ b/main.go @@ -203,7 +203,9 @@ func (s *Server) handleRecipePath(w http.ResponseWriter, r *http.Request) { s.failedMu.Lock() delete(s.failed, targetURL) s.failedMu.Unlock() - // fall through to normal flow (no cache hit → re-extract) + // Redirect to same path without query params to avoid loop + http.Redirect(w, r, path, http.StatusSeeOther) + return } recipe, err := s.cache.Get(targetURL) -- 2.51.2