mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 00:28:48 -05:00
tool_operate: bail if set CURLOPT_HTTP09_ALLOWED returns error
Closes #6727
This commit is contained in:
parent
32a71333d4
commit
985c184d5b
@ -1460,6 +1460,10 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
||||
/* new in libcurl 7.64.0 */
|
||||
my_setopt(curl, CURLOPT_HTTP09_ALLOWED,
|
||||
config->http09_allowed ? 1L : 0L);
|
||||
if(result) {
|
||||
errorf(global, "HTTP/0.9 is not supported in this build!\n");
|
||||
return result;
|
||||
}
|
||||
|
||||
} /* (built_in_protos & CURLPROTO_HTTP) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user