User agent header is now properly sent to api.