FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add test to ensure empty proxy env behaves like unset env by sathieu · Pull Request #6052 · libgit2/libgit2 · GitHub

Add test to ensure empty proxy env behaves like unset env - #6052

Merged
ethomson merged 1 commit into
libgit2:mainfrom
sathieu:patch-1
Sep 20, 2021
Merged

ethomson merged 1 commit into
libgit2:mainfrom
sathieu:patch-1

Conversation

sathieu commented Sep 14, 2021

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Mathieu Parent <math.parent@gmail.com>

sathieu commented Sep 14, 2021

Copy link
Copy Markdown
Contributor Author

Small addition to #6026.

ethomson merged commit 31e32dd into libgit2:main Sep 20, 2021
Comment thread tests/remote/httpproxy.c

/* empty env behaves like unset env */
cl_setenv("HTTPS_PROXY", "");
assert_proxy_is(NULL);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I dug in to the test failures because I thought that the proxy detection code was returning "" as the proxy or something, it was not.

This check needs to happen above the configuration change (or should otherwise undo the configuration change at line 138). The configuration overrides the environment variable, so this test would never be true.

I moved this up above and merged it. Thanks for the fix! 👍

sathieu commented Sep 20, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @ethomson!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL