Skip to content

Commit

Permalink
Merge branch 'FEATURES/TOOLS-452--download' into dxm1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
uar-darko-ljubic committed May 17, 2019
2 parents d0fb095 + a32f2de commit ff6ba01
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions renderer-process/_download.js
Expand Up @@ -29,7 +29,9 @@ const humanizeDuration = require('humanize-duration');

const { console_red } = require('../services/logger');

const db_downloads = remote.require('./services/db/downloads')
const db_downloads = remote.require('./services/db/downloads');

let userAgentString = remote.getCurrentWindow().webContents.getUserAgent()


if (!settings.has('global_pause')) {
Expand Down Expand Up @@ -199,7 +201,8 @@ async function download_items(xnat_server, user_auth, transfer, manifest_urls, c
responseType: 'stream',
adapter: httpAdapter,
headers: {
'Cookie': jsession_cookie
'Cookie': jsession_cookie,
'User-Agent': userAgentString
}
}

Expand Down

0 comments on commit ff6ba01

Please sign in to comment.