Skip to content

Commit

Permalink
fix: fix remote DS error
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Sep 16, 2019
1 parent a676473 commit 92832a7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dadi/lib/providers/remote.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict'

const config = require('../../../config')
const http = require('http')
const https = require('https')
const http2 = require('http2')
Expand Down Expand Up @@ -133,11 +134,7 @@ RemoteProvider.prototype.makeRequest = function (requestUrl, done) {
let agent

if (this.options.protocol.includes('https')) {
if (config.get('server.enableHTTP2')) {
agent = http2
} else {
agent = https
}
agent = https
} else {
agent = http
}
Expand Down

0 comments on commit 92832a7

Please sign in to comment.