summaryrefslogtreecommitdiff
path: root/plugins/http/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-03 17:20:37 +0300
committerGitHub <[email protected]>2021-06-03 17:20:37 +0300
commitc3e57fd82d59be19b2c41479e9019c60a0afc28f (patch)
tree2a0ece39bfed1799f1e2cba52f3bdd9cbbbb2664 /plugins/http/plugin.go
parent9c01e7ab1548e1416598b702d63866fa6dc5707b (diff)
parent7daadf3d40fb890d15c0fd97078ab1d2af4120a2 (diff)
#700 fix(bug): do not write internal error to the users responseWriter
#700 fix(bug): do not write internal error to the users responseWriter
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,