Could you then please change it to body_or_headers.dup ?