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:
Will Norris 2014-08-06 08:47:41 -07:00
parent a74e590181
commit bfbc8ff5ee
2 changed files with 0 additions and 12 deletions

View file

@ -57,8 +57,6 @@ func main() {
}
p := imageproxy.NewProxy(nil, c)
p.MaxWidth = 2000
p.MaxHeight = 2000
if *whitelist != "" {
p.Whitelist = strings.Split(*whitelist, ",")
}