]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
pytest: do not use reserved chars in url queries
authorStefan Eissing <stefan@eissing.org>
Mon, 26 May 2025 15:07:37 +0000 (17:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Jun 2025 21:17:35 +0000 (23:17 +0200)
Closes #17458

tests/http/test_07_upload.py

index da6373a49c47b776fb43033e92b7ef408e220d3a..40599c6ebef79d653f74c9686379b678090d4949 100644 (file)
@@ -179,7 +179,7 @@ class TestUpload:
             pytest.skip("h3 not supported")
         count = 2
         upload_size = 128*1024
-        url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]'
+        url = f'https://localhost:{env.https_port}/curltest/put'
         client = LocalClient(name='hx-upload', env=env)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')
@@ -195,7 +195,7 @@ class TestUpload:
             pytest.skip("h3 not supported")
         count = 2
         upload_size = 128*1024
-        url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]'
+        url = f'https://localhost:{env.https_port}/curltest/put'
         client = LocalClient(name='hx-upload', env=env)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')
@@ -211,7 +211,7 @@ class TestUpload:
             pytest.skip("h3 not supported")
         count = 2
         upload_size = 128*1024
-        url = f'https://localhost:{env.https_port}/curltest/echo?id=[0-{count-1}]'
+        url = f'https://localhost:{env.https_port}/curltest/echo'
         client = LocalClient(name='hx-upload', env=env)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')
@@ -564,7 +564,7 @@ class TestUpload:
         client = LocalClient(name='upload-pausing', env=env, timeout=60)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')
-        url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&just_die=1'
+        url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&just_die=1'
         r = client.run(['-V', proto, url])
         exp_code = 52  # GOT_NOTHING
         if proto == 'h2' or proto == 'h3':
@@ -581,7 +581,7 @@ class TestUpload:
         client = LocalClient(name='upload-pausing', env=env, timeout=60)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')
-        url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&die_after_100=1'
+        url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&die_after_100=1'
         r = client.run(['-V', proto, url])
         exp_code = 52  # GOT_NOTHING
         if proto == 'h2' or proto == 'h3':
@@ -741,7 +741,7 @@ class TestUpload:
         port = env.port_for(proto)
         if proto != 'h3':
             port = env.nghttpx_https_port
-        url = f'https://{env.domain1}:{port}/curltest/put?id=[0-{count-1}]'
+        url = f'https://{env.domain1}:{port}/curltest/put'
         client = LocalClient(name='hx-upload', env=env)
         if not client.exists():
             pytest.skip(f'example client not built: {client.name}')