content type header was being set wrong on retry