Skip to content

Prefer host and path over href in the Node HTTP adapter - #513

Open
Hashim1999164 wants to merge 1 commit into
Netflix:masterfrom
Hashim1999164:fix/node-http-prefer-host-path-over-href
Open

Prefer host and path over href in the Node HTTP adapter#513
Hashim1999164 wants to merge 1 commit into
Netflix:masterfrom
Hashim1999164:fix/node-http-prefer-host-path-over-href

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Aug 19, 2026

Copy link
Copy Markdown

Fixes #501

Node http.request uses hostname, host, path, port, and protocol. The adapter treated the nonstandard href option as the request URL, so a stale href (as some clients set) recorded a different request than Node actually sent.

When host, hostname, or path is present, the adapter now builds the URL from those fields. href is used only when none of those fields are set.

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.

NodeHttpAdapter's use of the non-standard options.href causes different behavior when Polly is enabled

1 participant