url: Added smtp and pop3 hostnames to the protocol detection list
authorSteve Holme <steve_holme@hotmail.com>
Tue, 23 Apr 2013 18:43:06 +0000 (19:43 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 23 Apr 2013 18:44:14 +0000 (19:44 +0100)
lib/url.c

index b438292..cef8a98 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -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";
       }