From 1a36460fb2e6251beeac1764668cfd8fce36aa9d Mon Sep 17 00:00:00 2001 From: gigirassy Date: Fri, 17 Oct 2025 04:43:00 +0200 Subject: [PATCH] Update main.go fix user agent --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 89b6567..13dcced 100644 --- a/main.go +++ b/main.go @@ -235,7 +235,7 @@ button[type="submit"],.btn-save{background:linear-gradient(90deg,var(--accent),# // Static index page (no JS). Bookmarks rendered server-side only here. func indexHandler(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "text/html; charset=utf-8") + w.Header().Set("Content-Type", "text/html; charset=utf8") // header and intro io.WriteString(w, `Pinata - Search`) io.WriteString(w, `
Pinata
`) @@ -504,7 +504,7 @@ func imageProxyHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, "failed", http.StatusBadGateway) return } - req.Header.Set("User-Agent", "PinataGo/1.0") + req.Header.Set("User-Agent", "Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0") resp, err := httpClient.Do(req) if err != nil { http.Error(w, "failed to fetch", http.StatusBadGateway)