mirror of
https://github.com/git/git.git
synced 2024-12-01 14:03:34 +08:00
Merge branch 'ak/curl-imap-send-explicit-scheme' into maint
When we started cURL to talk to imap server when a new enough version of cURL library is available, we forgot to explicitly add imap(s):// before the destination. To some folks, that didn't work and the library tried to make HTTP(s) requests instead. * ak/curl-imap-send-explicit-scheme: imap-send: Tell cURL to use imap:// or imaps://
This commit is contained in:
commit
f98180a982
@ -1410,6 +1410,7 @@ static CURL *setup_curl(struct imap_server_conf *srvc)
|
||||
curl_easy_setopt(curl, CURLOPT_USERNAME, server.user);
|
||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, server.pass);
|
||||
|
||||
strbuf_addstr(&path, server.use_ssl ? "imaps://" : "imap://");
|
||||
strbuf_addstr(&path, server.host);
|
||||
if (!path.len || path.buf[path.len - 1] != '/')
|
||||
strbuf_addch(&path, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user