curl error code code 18

curl erro code: 18, message: transfer closed with X bytes remaining to read

where X is a number

is present when You retrieve object metadata

HEAD /<api version>/<account>/<container>/<object> HTTP/1.1