From a932b9c2a545c944aeb49a8b244e5c1bf9b35b1f Mon Sep 17 00:00:00 2001 From: Federico Ragona Date: Tue, 2 Jul 2024 06:50:43 +0200 Subject: [PATCH] fix: disable implicit redirect content-type it's text/html unless otherwise specified --- api/bookmarks.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/bookmarks.go b/api/bookmarks.go index 0a86c24..d55ec14 100644 --- a/api/bookmarks.go +++ b/api/bookmarks.go @@ -76,6 +76,7 @@ func Handle(w http.ResponseWriter, r *http.Request) { } w.Header().Set("Location", link) + w.Header().Set("Content-Type", "") http.Redirect(w, r, link, http.StatusFound) return })