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

This commit is contained in:
kannappanr 2018-07-23 01:39:09 -07:00 committed by Nitish Tiwari
parent f1be356cc6
commit 2cd14f567c

View file

@ -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"`