Skip to content

Commit

Permalink
bugfix using DISABLE_PROXY_URL_FOR_ALL e8b60dc lib/utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Jun 26, 2024
1 parent e8b60dc commit e647b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function prepareRequestOptions(request_options, options) {
: CONFIG.PROXY_URL + encodeURIComponent(uri);
} else if (proxy.proxy_url && /{url}/.test(proxy.proxy_url)) {
request_options.uri = proxy.proxy_url.replace(/{url}/, encodeURIComponent(uri));
} else if (CONFIG.PROXY_URL_FOR_ALL && !options.DISABLE_PROXY_URL_FOR_ALL) {
} else if (CONFIG.PROXY_URL_FOR_ALL && !options?.DISABLE_PROXY_URL_FOR_ALL) {
request_options.uri = /{url}/.test(CONFIG.PROXY_URL_FOR_ALL)
? CONFIG.PROXY_URL_FOR_ALL.replace(/{url}/, encodeURIComponent(uri))
: CONFIG.PROXY_URL_FOR_ALL + encodeURIComponent(uri);
Expand Down

0 comments on commit e647b68

Please sign in to comment.