Fixes issue when testing on travis by using the https endpoint