url: Added smtp and pop3 hostnames to the protocol detection list

This commit is contained in:
Steve Holme 2013-04-23 19:43:06 +01:00
parent 2c0d65785f
commit 2af9fd4960
1 changed files with 4 additions and 0 deletions

View File

@ -3771,6 +3771,10 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
protop = "LDAP";
else if(checkprefix("IMAP.", conn->host.name))
protop = "IMAP";
else if(checkprefix("SMTP.", conn->host.name))
protop = "smtp";
else if(checkprefix("POP3.", conn->host.name))
protop = "pop3";
else {
protop = "http";
}