diff --git a/cmd/peer-s3-client.go b/cmd/peer-s3-client.go index 949e98318..3d4566463 100644 --- a/cmd/peer-s3-client.go +++ b/cmd/peer-s3-client.go @@ -169,7 +169,7 @@ func (sys *S3PeerSys) GetBucketInfo(ctx context.Context, bucket string, opts Buc if err = reduceReadQuorumErrs(ctx, errs, bucketOpIgnoredErrs, quorum); err != nil { return BucketInfo{}, toObjectErr(err, bucket) } - + return bucketInfo, nil } diff --git a/internal/handlers/forwarder.go b/internal/handlers/forwarder.go index c61a58f68..38bc58b22 100644 --- a/internal/handlers/forwarder.go +++ b/internal/handlers/forwarder.go @@ -78,6 +78,7 @@ func newBufPool(sz int) httputil.BufferPool { }, }} } + // ServeHTTP forwards HTTP traffic using the configured transport func (f *Forwarder) ServeHTTP(w http.ResponseWriter, inReq *http.Request) { outReq := new(http.Request)