```
const agent = new http.Agent({family: 4});
axios.get("http://mywebsite.com", {
      httpAgent: agent
    })
    .then((response) => {
       console.log(response);
    })

```
With above code, I get below error

http_client.js:55
    throw new Error('Protocol "' + protocol + '" not supported. ' +
    ^

Error: Protocol "https:" not supported. Expected "http:"
    at new ClientRequest (_http_client.js:55:11)
 
I am using Axios 0.15.3 and Node 6.10.0 version
lib/adapters/http.js
}
    
    var req = transport.request(options, function handleResponse(res) {
      if (req.aborted) return;
      
      var stream = res;
      switch (res.headers['content-encoding']) {
      
      case 'gzip':
      case 'compress':
      case 'deflate':
        
        stream = (res.statusCode === 204) ? stream : stream.pipe(zlib.createUnzip());
        
        delete res.headers['content-encoding'];
        break;
      }
      
      var lastRequest = res.req || req;
      var response = {
        status: res.statusCode,
        statusText: res.statusMessage,
        headers: res.headers,
        config: config,
        request: lastRequest
      };
      if (config.responseType === 'stream') {
        response.data = stream;
        settle(resolve, reject, response);
      } else {