Remove the if statement around the `setRequestHeader` it's no longer needed as it's already wrapped in a try/catch statement