Skip to content

Commit

Permalink
Fix options.cache defaulting to false
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Aug 6, 2018
1 parent 9ff5c04 commit 10e819c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/request-as-event-emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = options => {
fn = electron.net || electron.remote.net;
}

const cacheableRequest = new CacheableRequest(fn.request, options.cache);
const cacheableRequest = new CacheableRequest(fn.request, options.cache || false);
const cacheReq = cacheableRequest(options, response => {
const {statusCode} = response;
response.retryCount = retryCount;
Expand Down

0 comments on commit 10e819c

Please sign in to comment.