fix: allow LDAP identity to support form body POST (#10468)

similar to other STS APIs
This commit is contained in:
Harshavardhana
2020-09-11 23:02:32 -07:00
committed by GitHub
parent b70995dd60
commit bda0fe3150
2 changed files with 13 additions and 6 deletions
+5 -1
View File
@@ -18,6 +18,8 @@ package cmd
import (
"context"
"errors"
"net/http"
"os"
"strings"
@@ -53,7 +55,9 @@ func handleSignals() {
if httpServer := newHTTPServerFn(); httpServer != nil {
err = httpServer.Shutdown()
logger.LogIf(context.Background(), err)
if !errors.Is(err, http.ErrServerClosed) {
logger.LogIf(context.Background(), err)
}
}
if objAPI := newObjectLayerWithoutSafeModeFn(); objAPI != nil {