Fix download URL when SSL is enabled

This commit is contained in:
Zaid Abdulla committed 2019-10-11 11:58:20 -07:00
1 parent e31d74bd45
commit 20857549d0
1 file changed
+1 -1
+1 -1
View File
@@ -774,7 +774,7 @@ async function sendAcsRequest(
downloadRequest.fileSize = 0; downloadRequest.fileSize = 0;
if (!downloadRequest.url) { if (!downloadRequest.url) {
const FS_PORT = config.get("FS_PORT"); const FS_PORT = config.get("FS_PORT");
const FS_SSL = config.get("FS_SSL"); const FS_SSL = config.get("FS_SSL_CERT");
let hostname = config.get("FS_HOSTNAME"); let hostname = config.get("FS_HOSTNAME");
if (!hostname) { if (!hostname) {
if (sessionContext.httpRequest.headers["host"]) if (sessionContext.httpRequest.headers["host"])