Fixed request re-generation logic when retrying a failed request. Auto-generated headers will no accumulate.