diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-29 11:57:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-29 11:57:52 +0000 |
commit | 8ca37dd1c7f45ee1e29978e7eb26bec951ccff3b (patch) | |
tree | e033c230a70efa0778f34d36bc3c9a1390402a70 /lib | |
parent | 31e9e4bb76462ceb02055317731c7514aac42838 (diff) |
encode the correct name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |