diff --git a/main.go b/main.go index e987f4a..0400016 100644 --- a/main.go +++ b/main.go @@ -261,7 +261,7 @@ func styleHandler(w http.ResponseWriter, r *http.Request) { } 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") _, _ = io.WriteString(w, `Pinata - Search`) _, _ = io.WriteString(w, `
Pinata
`) _, _ = io.WriteString(w, `
Search images from Pinterest — submit a search to view results.
`) @@ -676,7 +676,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:145.0) Gecko/20100101 Firefox/145.0") resp, err := httpClient.Do(req) if err != nil {