fix signature check when content length not included

This commit is contained in:
Ben McClelland
2023-06-07 08:37:14 -07:00
parent e75baad56c
commit 002c427e7d
5 changed files with 31 additions and 5 deletions
+10
View File
@@ -34,6 +34,7 @@ var (
adminSecret string
region string
certFile, keyFile string
debug bool
)
var (
@@ -119,6 +120,11 @@ func initFlags() []cli.Flag {
Usage: "TLS key file",
Destination: &keyFile,
},
&cli.BoolFlag{
Name: "debug",
Usage: "enable debug output",
Destination: &debug,
},
}
}
@@ -145,6 +151,10 @@ func runGateway(be backend.Backend) error {
opts = append(opts, s3api.WithTLS(cert))
}
if debug {
opts = append(opts, s3api.WithDebug())
}
srv, err := s3api.New(app, be, port,
middlewares.AdminConfig{
AdminAccess: adminAccess,