mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
doh: use https protocol by default
The only allowed protocol is https, so it makes sense to use that by default if not passed explicitly by the user. Reported-by: MasterInQuestion on github Reviewed-by: Jay Satiro Fixes #9163 Closes #9165
This commit is contained in:
parent
4c46c829f5
commit
a19f0601fe
@ -243,6 +243,7 @@ static CURLcode dohprobe(struct Curl_easy *data,
|
||||
the gcc typecheck helpers */
|
||||
struct dynbuf *resp = &p->serverdoh;
|
||||
ERROR_CHECK_SETOPT(CURLOPT_URL, url);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_DEFAULT_PROTOCOL, "https");
|
||||
ERROR_CHECK_SETOPT(CURLOPT_WRITEFUNCTION, doh_write_cb);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_WRITEDATA, resp);
|
||||
ERROR_CHECK_SETOPT(CURLOPT_POSTFIELDS, p->dohbuffer);
|
||||
|
Loading…
Reference in New Issue
Block a user