Skip to content

Commit

Permalink
bugfix using DISABLE_PROXY_URL_FOR_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Jun 26, 2024
1 parent 417683e commit a5d19c4
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 @@ -138,7 +138,7 @@ export function prepareRequestOptions(request_options, options) {
}
} else {

if (CONFIG.PROXY_URL_FOR_ALL && !options.DISABLE_PROXY_URL_FOR_ALL) {
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 a5d19c4

Please sign in to comment.