mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-30 14:06:48 +02:00
Remove forgotten debug
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
|
||||
@@ -54,10 +53,8 @@ func IsSVG(r io.Reader) (bool, error) {
|
||||
dec := xml.NewDecoder(rr)
|
||||
dec.Strict = false
|
||||
dec.CharsetReader = xmlCharsetReader
|
||||
if err := dec.Decode(&h); h.XMLName.Local == "svg" {
|
||||
if dec.Decode(&h); h.XMLName.Local == "svg" {
|
||||
return true, nil
|
||||
} else {
|
||||
log.Printf("SVG err: %s", err)
|
||||
}
|
||||
|
||||
if len(buf) >= maxBytes {
|
||||
|
Reference in New Issue
Block a user