]> granicus.if.org Git - curl/commitdiff
encode the correct name
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Apr 2004 11:57:52 +0000 (11:57 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Apr 2004 11:57:52 +0000 (11:57 +0000)
lib/url.c

index 38beb89a2990a7c4ef13b8482c201656bed7c991..9c27b1cba2048316d597cd2a602724b7d83a974f 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1972,7 +1972,7 @@ static bool is_ASCII_name (const char *hostname)
 static void fix_hostname(struct connectdata *conn, struct hostname *host)
 {
   /* set the name we use to display the host name */
-  conn->host.dispname = conn->host.name;
+  host->dispname = host->name;
 
 #ifdef USE_LIBIDN
   /*************************************************************
@@ -3128,7 +3128,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
     else {
       /* This is a proxy that hasn't been resolved yet. */
 
-      /* IDN check */
+      /* IDN-fix the proxy name */
       fix_hostname(conn, &conn->proxy);
 
       /* resolve proxy */