mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-18 08:15:14 +02:00
remove MaxWidth and MaxHeight options
These were originally added to prevent a denial of service caused by requesting very large images, but are no longer needed since we no longer resize images larger than their original size.
This commit is contained in:
parent
a74e590181
commit
bfbc8ff5ee
2 changed files with 0 additions and 12 deletions
|
|
@ -57,8 +57,6 @@ func main() {
|
|||
}
|
||||
|
||||
p := imageproxy.NewProxy(nil, c)
|
||||
p.MaxWidth = 2000
|
||||
p.MaxHeight = 2000
|
||||
if *whitelist != "" {
|
||||
p.Whitelist = strings.Split(*whitelist, ",")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue