Do not set Key and BucketName in ErrorResponse, if empty (#6174)

master
kannappanr 6 years ago committed by Nitish Tiwari
parent f1be356cc6
commit 2cd14f567c
  1. 4
      cmd/api-errors.go

@ -40,8 +40,8 @@ type APIErrorResponse struct {
XMLName xml.Name `xml:"Error" json:"-"`
Code string
Message string
Key string
BucketName string
Key string `xml:"Key,omitempty" json:"Key,omitempty"`
BucketName string `xml:"BucketName,omitempty" json:"BucketName,omitempty"`
Resource string
RequestID string `xml:"RequestId" json:"RequestId"`
HostID string `xml:"HostId" json:"HostId"`

Loading…
Cancel
Save