add a cast to https-client.c