Skip to content

Commit

Permalink
proxy can be undefined, false, or object
Browse files Browse the repository at this point in the history
Properly pass in all variations of proxy into axios config.
  • Loading branch information
jeffbski committed Jul 9, 2020
1 parent 2400d69 commit a56a15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wait-on.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function createHTTP$({ validatedOpts, output }, resource) {
...pick(['ca', 'cert', 'key', 'passphrase'], validatedOpts),
}),
...(followRedirect ? {} : { maxRedirects: 0 }), // defaults to 5 (enabled)
...(proxy && { proxy }),
proxy, // can be undefined, false, or object
...(timeout && { timeout }),
...urlSocketOptions,
method,
Expand Down

0 comments on commit a56a15c

Please sign in to comment.