mirror of
https://github.com/minio/minio.git
synced 2025-02-23 03:22:30 -05:00
simplify success response for GetObjectAttributes() (#18746)
This commit is contained in:
parent
9b8ba97f9f
commit
42dc6329e6
@ -813,17 +813,7 @@ func (api objectAPIHandlers) getObjectAttributesHandler(ctx context.Context, obj
|
||||
}
|
||||
}
|
||||
|
||||
outBytes, err := xml.Marshal(OA)
|
||||
if err != nil {
|
||||
writeErrorResponseHeadersOnly(w, toAPIError(ctx, err))
|
||||
}
|
||||
|
||||
writeResponse(
|
||||
w,
|
||||
200,
|
||||
append([]byte(`<?xml version="1.0" encoding="UTF-8"?>`), outBytes...),
|
||||
mimeXML,
|
||||
)
|
||||
writeSuccessResponseXML(w, encodeResponse(OA))
|
||||
|
||||
sendEvent(eventArgs{
|
||||
EventName: event.ObjectAccessedAttributes,
|
||||
|
Loading…
x
Reference in New Issue
Block a user