1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-08 10:45:04 +02:00

applyMetaStripmetaOption => applyStripMetadataOption

This commit is contained in:
DarthSim 2020-07-01 19:50:47 +06:00
parent 73a5d794f3
commit f98dfca44a

View File

@ -850,7 +850,7 @@ func applyFilenameOption(po *processingOptions, args []string) error {
return nil
}
func applyMetaStripmetaOption(po *processingOptions, args []string) error {
func applyStripMetadataOption(po *processingOptions, args []string) error {
if len(args[0]) > 0 {
po.StripMetadata = parseBoolOption(args[0])
}
@ -902,10 +902,10 @@ func applyProcessingOption(po *processingOptions, name string, args []string) er
return applyPresetOption(po, args)
case "cachebuster", "cb":
return applyCacheBusterOption(po, args)
case "strip_metadata", "sm":
return applyStripMetadataOption(po, args)
case "filename", "fn":
return applyFilenameOption(po, args)
case "strip_metadata", "sm":
return applyMetaStripmetaOption(po, args)
}
return fmt.Errorf("Unknown processing option: %s", name)