1 var proxy = require('./proxy'),
2 userAgent = require('./useragent');
5 * The options passed to request when downloading the bibary
7 * There some nuance to how request handles options. Specifically
8 * we've been caught by their usage of `hasOwnProperty` rather than
9 * falsey checks. By moving the options generation into a util helper
10 * we can test for regressions.
12 * @return {Object} an options object for request
15 module.exports = function() {
17 rejectUnauthorized: false,
20 'User-Agent': userAgent(),
24 var proxyConfig = proxy();
26 options.proxy = proxyConfig;