File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,9 @@ def test_ignore_netrc_null_auth():
158158def test_percent_encoded_credentials_in_url (httpbin_both ):
159159 """
160160 Test that percent-encoded characters in URL credentials are decoded.
161-
161+
162162 https://github.com/httpie/cli/issues/1623
163-
163+
164164 When credentials contain special characters (like @, =, ?) they need to be
165165 percent-encoded in the URL. HTTPie should decode these before using them
166166 for authentication.
@@ -169,11 +169,9 @@ def test_percent_encoded_credentials_in_url(httpbin_both):
169169 # Percent-encoded: username="u%40d", password="1%3d2%3f"
170170 url = httpbin_both .url + '/basic-auth/u%40d/1%3d2%3f'
171171 url_with_auth = add_auth (url , auth = 'u%40d:1%3d2%3f' )
172-
172+
173173 r = http ('GET' , url_with_auth )
174-
174+
175175 # This should succeed with 200 OK, not 401
176176 assert HTTP_OK in r
177177 assert r .json == {'authenticated' : True , 'user' : 'u@d' }
178-
179-
You can’t perform that action at this time.
0 commit comments