Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Sep 9, 2024
1 parent 61e9aa4 commit 3ac6fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui5-middleware-serveframework/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module.exports = async ({ log, options, middlewareUtil }) => {
const proxyUrl = getProxyForUrl(baseUrl);
const agentOptions = { rejectUnauthorized: effectiveOptions.strictSSL };

const agent = proxyUrl ? new HttpsProxyAgent(Object.assign(new URL(proxyUrl), agentOptions)) : new https.Agent(agentOptions);
const agent = proxyUrl ? new HttpsProxyAgent(new URL(proxyUrl), agentOptions) : new https.Agent(agentOptions);

if (effectiveOptions.debug) {
log.info(`[${baseUrl}] Proxy: ${proxyUrl || "n/a"}, strictSSL: ${effectiveOptions.strictSSL}`);
Expand Down

0 comments on commit 3ac6fb4

Please sign in to comment.