Reenable PNG queries

pull/1067/head
Igor Chubin 1 month ago
parent 8257520968
commit d923430e96

@ -6,7 +6,6 @@ import (
"io" "io"
stdlog "log" stdlog "log"
"net/http" "net/http"
"strings"
"time" "time"
"github.com/alecthomas/kong" "github.com/alecthomas/kong"
@ -156,12 +155,6 @@ func mainHandler(
log.Println(err) log.Println(err)
} }
if checkURLForPNG(r) {
w.Write([]byte("PNG support temporary disabled"))
return
}
response, err := rp.ProcessRequest(r) response, err := rp.ProcessRequest(r)
if err != nil { if err != nil {
log.Println(err) log.Println(err)
@ -259,8 +252,3 @@ func setLogLevel(logLevel string) error {
return nil return nil
} }
func checkURLForPNG(r *http.Request) bool {
url := r.URL.String()
return strings.Contains(url, ".png") && !strings.Contains(url, "/files/")
}

Loading…
Cancel
Save