diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-03-11 15:37:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-03-11 22:45:20 +0100 |
commit | 985c184d5b5f7bd442af462cfde5f7f597122b13 (patch) | |
tree | 1c03b62489463a8362acd028b8d39a42153b465f /src | |
parent | 32a71333d4dff782fbf6be8b48e04e1aa1e0450b (diff) | |
download | curl-985c184d5b5f7bd442af462cfde5f7f597122b13.tar.gz |
tool_operate: bail if set CURLOPT_HTTP09_ALLOWED returns error
Closes #6727
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_operate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 2aebb9ac2..942643290 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -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) */ |