Fixed the callback function parameter type in https.request and https.get