mirror of
https://github.com/mirror/wget.git
synced 2025-03-31 06:30:12 +08:00
Fix silly scoping bug.
This commit is contained in:
parent
1153d3d05c
commit
1b28d66fcb
12
src/http.c
12
src/http.c
@ -1622,14 +1622,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
only hurts us. */
|
only hurts us. */
|
||||||
request_remove_header (req, "Authorization");
|
request_remove_header (req, "Authorization");
|
||||||
}
|
}
|
||||||
}
|
else if (host_lookup_failed)
|
||||||
|
|
||||||
if (sock < 0)
|
|
||||||
{
|
|
||||||
/* In its current implementation, persistent_available_p will
|
|
||||||
look up conn->host in some cases. If that lookup failed, we
|
|
||||||
don't need to bother with connect_to_host. */
|
|
||||||
if (host_lookup_failed)
|
|
||||||
{
|
{
|
||||||
request_free (req);
|
request_free (req);
|
||||||
logprintf(LOG_NOTQUIET,
|
logprintf(LOG_NOTQUIET,
|
||||||
@ -1637,7 +1630,10 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
exec_name, relevant->host);
|
exec_name, relevant->host);
|
||||||
return HOSTERR;
|
return HOSTERR;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sock < 0)
|
||||||
|
{
|
||||||
sock = connect_to_host (conn->host, conn->port);
|
sock = connect_to_host (conn->host, conn->port);
|
||||||
if (sock == E_HOST)
|
if (sock == E_HOST)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user