Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plugin-http] error in getAbsoluteUrl method #579

Closed
OlivierAlbertini opened this issue Nov 30, 2019 · 0 comments · Fixed by #580
Closed

[plugin-http] error in getAbsoluteUrl method #579

OlivierAlbertini opened this issue Nov 30, 2019 · 0 comments · Fixed by #580
Assignees
Labels
bug Something isn't working

Comments

@OlivierAlbertini
Copy link
Member

host variable checks headers.host twice.

It should be let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || 'localhost';

Additional context

Add any other context about the problem here.
We should make tests more strict.

@OlivierAlbertini OlivierAlbertini added the bug Something isn't working label Nov 30, 2019
OlivierAlbertini added a commit to OlivierAlbertini/opentelemetry-js that referenced this issue Nov 30, 2019
OlivierAlbertini added a commit to OlivierAlbertini/opentelemetry-js that referenced this issue Nov 30, 2019
OlivierAlbertini added a commit to OlivierAlbertini/opentelemetry-js that referenced this issue Nov 30, 2019
@OlivierAlbertini OlivierAlbertini self-assigned this Nov 30, 2019
OlivierAlbertini added a commit to OlivierAlbertini/opentelemetry-js that referenced this issue Nov 30, 2019
mayurkale22 pushed a commit that referenced this issue Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant