mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Remove forgotten debug
This commit is contained in:
parent
1dc3d5e988
commit
8d7009e9e4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user