summaryrefslogtreecommitdiff
path: root/plugins/http/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-03 16:59:10 +0300
committerValery Piashchynski <[email protected]>2021-06-03 16:59:10 +0300
commit063703e96e5f7cee59139e98d446d5577fb5c224 (patch)
treee669d08cbbafaa5d809bfb870e874d3de4683dad /plugins/http/plugin.go
parent62bbde7936109d18bf1f727974719804dad4c105 (diff)
- Add internal_error_code option
- Update tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r--plugins/http/plugin.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go
index 770ca8ca..1952679a 100644
--- a/plugins/http/plugin.go
+++ b/plugins/http/plugin.go
@@ -149,6 +149,7 @@ func (p *Plugin) serve(errCh chan error) {
p.handler, err = handler.NewHandler(
p.cfg.MaxRequestSize,
+ p.cfg.InternalErrorCode,
*p.cfg.Uploads,
p.cfg.Cidrs,
p.pool,
@@ -323,6 +324,7 @@ func (p *Plugin) Reset() error {
p.handler, err = handler.NewHandler(
p.cfg.MaxRequestSize,
+ p.cfg.InternalErrorCode,
*p.cfg.Uploads,
p.cfg.Cidrs,
p.pool,