Skip to content

Commit a4880ea

Browse files
authored
Update index.js
1 parent 9c3f86b commit a4880ea

File tree

1 file changed

+1
-1
lines changed
  • packages/web3-providers-http/src

1 file changed

+1
-1
lines changed

packages/web3-providers-http/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const HttpProvider = function HttpProvider(host, options) {
4444
const keepAlive = options.keepAlive !== false;
4545
this.host = host || 'http://localhost:8545';
4646
if (!this.agent) {
47-
if (this.host.substring(0, 5) === 'https://jspm.dev/npm:@jspm/core@2/nodelibs/https') {
47+
if (this.host.substring(0, 5) === 'https') {
4848
this.httpsAgent = new https.Agent({ keepAlive });
4949
} else {
5050
this.httpAgent = new http.Agent({ keepAlive });

0 commit comments

Comments
 (0)