From c966c857fa6b65fcada6c765e9432344da9663b7 Mon Sep 17 00:00:00 2001 From: tanfarming Date: Fri, 9 Feb 2024 14:27:57 -0500 Subject: [PATCH] word --- ita/internal/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ita/internal/handlers.go b/ita/internal/handlers.go index 97c546f1..13ddcf4a 100644 --- a/ita/internal/handlers.go +++ b/ita/internal/handlers.go @@ -323,7 +323,7 @@ var Restore = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { }) var RewriteAssets = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - err := ret_rewrite_assets(r.Header.Get("old_domain"), r.Header.Get("new_domain")) + err := ret_rewrite_assets(r.URL.Query().Get("old_domain"), r.URL.Query().Get("new_domain")) if err != nil { http.Error(w, "failed", http.StatusInternalServerError) return