From d923430e964622544c7583a10c202ffb9b82db21 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 10 Feb 2025 23:28:51 +0100 Subject: [PATCH] Reenable PNG queries --- srv.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/srv.go b/srv.go index b07cbf9..94d2713 100644 --- a/srv.go +++ b/srv.go @@ -6,7 +6,6 @@ import ( "io" stdlog "log" "net/http" - "strings" "time" "github.com/alecthomas/kong" @@ -156,12 +155,6 @@ func mainHandler( log.Println(err) } - if checkURLForPNG(r) { - w.Write([]byte("PNG support temporary disabled")) - - return - } - response, err := rp.ProcessRequest(r) if err != nil { log.Println(err) @@ -259,8 +252,3 @@ func setLogLevel(logLevel string) error { return nil } - -func checkURLForPNG(r *http.Request) bool { - url := r.URL.String() - return strings.Contains(url, ".png") && !strings.Contains(url, "/files/") -}