StatObjectResponse is initialized with delete_marker true
as default value. See this line of code:
|
StatObjectResponse resp(response); |
Since headers do not contain x-amz-delete-marker
it still is returned as true
.
Solution is to initialize delete_marker
field with false
.