Skip to content

fix(outgoing-opts): preference for values in ssl#1504

Open
stanleynguyen wants to merge 1 commit intohttp-party:masterfrom
stanleynguyen:patch-1
Open

fix(outgoing-opts): preference for values in ssl#1504
stanleynguyen wants to merge 1 commit intohttp-party:masterfrom
stanleynguyen:patch-1

Conversation

@stanleynguyen
Copy link
Copy Markdown

@stanleynguyen stanleynguyen commented Feb 2, 2021

Preventing overwriting by undefined first-layer key from the main options
Resolves #1503

Preventing overwriting of undefined first-layer key from the main options
pi0 added a commit to unjs/httpxy that referenced this pull request Mar 25, 2026
When `setupOutgoing` copies properties like `cert`, `key`, `ca` from the
target object, undefined values would overwrite existing ssl options passed
via `options.ssl`. Skip assignment when the target value is undefined.

Upstream: http-party/node-http-proxy#1504
pi0 added a commit to unjs/httpxy that referenced this pull request Mar 25, 2026
#118)

When `setupOutgoing` copies properties like `cert`, `key`, `ca` from the
target object, undefined values would overwrite existing ssl options passed
via `options.ssl`. Skip assignment when the target value is undefined.

Upstream: http-party/node-http-proxy#1504
@pi0
Copy link
Copy Markdown

pi0 commented Mar 25, 2026

This issue has been fixed in unjs/httpxy#118.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outgoing SSL options overwritten by undefined values from main options

2 participants