diff --git a/src/tool_operate.c b/src/tool_operate.c index 4516c8e6a..7d58dde27 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1006,7 +1006,8 @@ static CURLcode operate_do(struct GlobalConfig *global, if(config->tr_encoding) my_setopt(curl, CURLOPT_TRANSFER_ENCODING, 1L); /* new in libcurl 7.64.0 */ - my_setopt(curl, CURLOPT_HTTP09_ALLOWED, config->http09_allowed); + my_setopt(curl, CURLOPT_HTTP09_ALLOWED, + config->http09_allowed ? 1L : 0L); } /* (built_in_protos & CURLPROTO_HTTP) */