-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Fix: Lost username when setting new URL with a path (IDFGH-904) #3250
Conversation
Add 1 more test case and this is the test result:
|
@mahavirj @david-cermak PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hongquan
Thanks for sending this fix. I posted some comments to your code, mainly minor/cosmetic suggestions or open points to discuss. I would ask for an update form your side though, at least related to the unit test file.
Thanks for your contribution, nice and solid work, mainly appreciated the unit tests for the added fix.
Hi @david-cermak I've just updated the code. New test result:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for such a quick update. Looks good to me, but please just squash the commits (or at least melt the two latter to the previous two). In perfect case possibly create just two commits, one fixing the issue, another one adding unit tests.
de209ab
to
17b6705
Compare
I've rebased the commits to two. |
Thank you @hongquan for your contribution. I'm submitting this for internal review. I'll contact you if other requests emerge. Otherwise, this PR will be closed when it gets merged into master. Thank you Mahavir and David for the review. |
This PR is to fix a bug, in which, when calling
esp_http_client_set_url
with a path ("/api/"
), the username and password set earlier withesp_http_client_init()
are lost.Test cases included. This is the test result:
To able to test, I have to add 2 more functions:
esp_http_client_get_username
andesp_http_client_get_password
.