mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
17d302e562
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
43 lines
471 B
Plaintext
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>
|