only remove content length when overwritting