function getDefaultPort(opts) {
  return !opts.protocol || opts.protocol === 'http:' ? DEFAULT_HTTP_PORT : DEFAULT_SSL_PORT
}
Determines the default port to 80 if protocol is undefined or http:
Otherwise it assigns it as 443

@param {object} opts HTTP request options
@returns {number} default port