Commit 2af9fd49 authored by Steve Holme's avatar Steve Holme
Browse files

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

parent 2c0d6578
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";
      }