1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

encode the correct name

This commit is contained in:
Daniel Stenberg 2004-04-29 11:57:52 +00:00
parent 31e9e4bb76
commit 8ca37dd1c7

View File

@ -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 */