diff --git a/cmd/acl-handlers.go b/cmd/acl-handlers.go index 74ed02843..8c8366a5d 100644 --- a/cmd/acl-handlers.go +++ b/cmd/acl-handlers.go @@ -91,7 +91,7 @@ func (api objectAPIHandlers) PutBucketACLHandler(w http.ResponseWriter, r *http. acl := &accessControlPolicy{} if err = xmlDecoder(r.Body, acl, r.ContentLength); err != nil { if terr, ok := err.(*xml.SyntaxError); ok && terr.Msg == io.EOF.Error() { - writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingSecurityHeader), + writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedXML), r.URL) return }