config2setopts: use default protocol properly

Verified by test 1724, 1725 and 2036

Closes #21983
This commit is contained in:
Daniel Stenberg 2026-06-12 09:01:22 +02:00
parent 410f3ca585
commit ab3bb8cd8b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 146 additions and 23 deletions

26
tests/data/test2036 Normal file
View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
--proto-default
</keywords>
</info>
# Client-side
<client>
<name>
Attempt to set a default protocol with :// suffix
</name>
<command>
--proto-default https://
</command>
</client>
# Verify data after the test has been "shot"
<verify>
# CURLE_UNSUPPORTED_PROTOCOL is error code 1
<errorcode>
1
</errorcode>
</verify>
</testcase>