We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c3f86b commit a4880eaCopy full SHA for a4880ea
packages/web3-providers-http/src/index.js
@@ -44,7 +44,7 @@ const HttpProvider = function HttpProvider(host, options) {
44
const keepAlive = options.keepAlive !== false;
45
this.host = host || 'http://localhost:8545';
46
if (!this.agent) {
47
- if (this.host.substring(0, 5) === 'https://jspm.dev/npm:@jspm/core@2/nodelibs/https') {
+ if (this.host.substring(0, 5) === 'https') {
48
this.httpsAgent = new https.Agent({ keepAlive });
49
} else {
50
this.httpAgent = new http.Agent({ keepAlive });
0 commit comments