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

Url's port ignored when Apache HTTP Client is used #182

Open
sukolenvo opened this issue Apr 7, 2022 · 0 comments
Open

Url's port ignored when Apache HTTP Client is used #182

sukolenvo opened this issue Apr 7, 2022 · 0 comments

Comments

@sukolenvo
Copy link

Default http transport is Apache HTTP Client (link). But it doesn't support url port (ie. I can't use http://locahost:8080/ as BASE_URL_QBO in tests. Requests will be made to localhost:80).

I think root cause is that -1 is used as port in HttpTarget (source)
Is it possible to replace hardcoded value with url.getPort() (if port ommitted - it returns -1 anyway)? Happy to open PR.

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

No branches or pull requests

1 participant