Update http.c

This commit is contained in:
mmmdbybyd 2018-11-24 10:31:20 +08:00 committed by GitHub
parent 2675a28f7c
commit c1d1416fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
http.c
View File

@ -487,6 +487,16 @@ void tcp_in(conn_t *in)
free(host);
return;
}
else
{
//如果是CONNECT代理HTTP 需要再次获取host
char *host_save = host;
host = get_host(in->incomplete_data);
if (host)
free(host_save);
else
host = host_save;
}
}
else
{