fix(svg/sanitize): preserve headers from origin data

This commit is contained in:
Andrei Vydrin
2023-06-22 18:22:10 +07:00
committed by DarthSim
parent 4e4b9edb53
commit 4de9b83899
3 changed files with 29 additions and 5 deletions

View File

@@ -362,7 +362,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
// Don't process SVG
if originData.Type == imagetype.SVG {
if config.SanitizeSvg {
sanitized, svgErr := svg.Satitize(originData)
sanitized, svgErr := svg.Sanitize(originData)
checkErr(ctx, "svg_processing", svgErr)
// Since we'll replace origin data, it's better to close it to return