0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2025-02-03 23:10:17 -05:00

fix flag parsing

This commit is contained in:
Christopher Brown 2018-02-09 16:04:30 -06:00
parent f9a49e1900
commit 0056c7a4f5

View file

@ -67,6 +67,9 @@ func main() {
if *referrers != "" {
p.Referrers = strings.Split(*referrers, ",")
}
if *contentTypes != "" {
p.ContentTypes = strings.Split(*contentTypes, ",")
}
if *signatureKey != "" {
key := []byte(*signatureKey)
if strings.HasPrefix(*signatureKey, "@") {