closed #2450: Fixing a bug that HttpClientTest crashes on Mac