MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / MaxSrcFileSize

Method MaxSrcFileSize

security/checker.go:30–32  ·  view source on GitHub ↗

MaxSrcFileSize returns the maximum allowed source file size

(o *options.Options)

Source from the content-addressed store, hash-verified

28
29// MaxSrcFileSize returns the maximum allowed source file size
30func (s *Checker) MaxSrcFileSize(o *options.Options) int {
31 return o.GetInt(keys.MaxSrcFileSize, s.config.MaxSrcFileSize)
32}
33
34// MaxAnimationFrames returns the maximum allowed animation frames
35func (s *Checker) MaxAnimationFrames(o *options.Options) int {

Callers 1

makeDownloadOptionsMethod · 0.80

Calls 1

GetIntMethod · 0.45

Tested by

no test coverage detected