Moving the Content-Type setting to before the request actually goes out