curl/tests/data/test1474
Daniel Gustafsson 17d302e562 setopt: Fix disabling all protocols
When disabling all protocols without enabling any, the resulting
set of allowed protocols remained the default set.  Clearing the
allowed set before inspecting the passed value from --proto make
the set empty even in the errorpath of no protocols enabled.

Co-authored-by: Dan Fandrich <dan@telarity.com>
Reported-by: Dan Fandrich <dan@telarity.com>
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Closes: #13004
2024-02-27 15:43:56 +01:00

43 lines
471 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
--proto
</keywords>
</info>
#
# Server-side
<reply>
<data>
</data>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<features>
http
</features>
<name>
--proto -all disables all protocols
</name>
<command>
--proto -all http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
# 1 - Protocol "http" disabled
<errorcode>
1
</errorcode>
</verify>
</testcase>