As previously attempted in http-party/node-http-proxy#1307
Following the deprecation recommendation in http documentation: