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:
parent
f9a49e1900
commit
0056c7a4f5
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ func main() {
|
||||||
if *referrers != "" {
|
if *referrers != "" {
|
||||||
p.Referrers = strings.Split(*referrers, ",")
|
p.Referrers = strings.Split(*referrers, ",")
|
||||||
}
|
}
|
||||||
|
if *contentTypes != "" {
|
||||||
|
p.ContentTypes = strings.Split(*contentTypes, ",")
|
||||||
|
}
|
||||||
if *signatureKey != "" {
|
if *signatureKey != "" {
|
||||||
key := []byte(*signatureKey)
|
key := []byte(*signatureKey)
|
||||||
if strings.HasPrefix(*signatureKey, "@") {
|
if strings.HasPrefix(*signatureKey, "@") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue