mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
doh: make sure CURLOPT_PROTOCOLS is set a with a "long" arg
Closes #17142
This commit is contained in:
parent
3394644325
commit
b993f2871b
1 changed files with 2 additions and 2 deletions
|
|
@ -348,10 +348,10 @@ static CURLcode doh_probe_run(struct Curl_easy *data,
|
|||
#endif
|
||||
#ifndef DEBUGBUILD
|
||||
/* enforce HTTPS if not debug */
|
||||
ERROR_CHECK_SETOPT(CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_PROTOCOLS, (long)CURLPROTO_HTTPS);
|
||||
#else
|
||||
/* in debug mode, also allow http */
|
||||
ERROR_CHECK_SETOPT(CURLOPT_PROTOCOLS, CURLPROTO_HTTP|CURLPROTO_HTTPS);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_PROTOCOLS, (long)CURLPROTO_HTTP|CURLPROTO_HTTPS);
|
||||
#endif
|
||||
ERROR_CHECK_SETOPT(CURLOPT_TIMEOUT_MS, (long)timeout_ms);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_SHARE, (CURLSH *)data->share);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue