We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67a1bd commit 035eeabCopy full SHA for 035eeab
tests/test_auth.py
@@ -153,3 +153,11 @@ def test_ignore_netrc_null_auth():
153
env=MockEnvironment(),
154
)
155
assert isinstance(args.auth, ExplicitNullAuth)
156
+
157
+def test_percent_encoded_credentials_in_url(httpbin_both):
158
+ encoded_url = httpbin_both.url.replace("://", "://u%40d:1%3d2%3f@") + '/basic-auth/u%40d/1%3d2%3f'
159
160
+ r = http('GET', encoded_url)
161
162
+ assert HTTP_OK in r
163
+ assert r.json == {'authenticated': True, 'user': 'u@d'}
0 commit comments