mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
make agent options/config pass lint checks (#1144)
This commit is contained in:
@@ -379,7 +379,7 @@ func setupCtx(c *call) {
|
||||
c.req = c.req.WithContext(ctx)
|
||||
}
|
||||
|
||||
func setMaxBodyLimit(cfg *AgentConfig, c *call) error {
|
||||
func setMaxBodyLimit(cfg *Config, c *call) error {
|
||||
if cfg.MaxRequestSize > 0 && c.req.ContentLength > 0 && uint64(c.req.ContentLength) > cfg.MaxRequestSize {
|
||||
return models.ErrRequestContentTooBig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user