Reenable PNG queries

pull/1067/head
Igor Chubin 4 weeks ago
parent 8257520968
commit d923430e96

@ -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/")
}

Loading…
Cancel
Save