Skip to content

fix(interceptors): expose Client origin to DNS interceptor#5289

Closed
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/4234-client-compose-origin-for-dns
Closed

fix(interceptors): expose Client origin to DNS interceptor#5289
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/4234-client-compose-origin-for-dns

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

  • Add the Client origin to composed dispatch options when a request omits origin.
  • This lets interceptors such as dns() resolve the client URL without forcing callers to repeat origin in every request.
  • Add regression coverage for new Client(url).compose(dns()).request({ path }).

Fixes #4234.

Validation

  • node --test --test-name-pattern "Should resolve client origin when request origin is omitted" test/interceptors/dns.js
  • npm run lint -- lib/dispatcher/dispatcher.js test/interceptors/dns.js

@KhafraDev KhafraDev closed this May 12, 2026
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.

The DNS Interceptor is unable to retrieve the origin properly

2 participants