Add files via upload

This commit is contained in:
mmmdbybyd 2018-11-24 13:58:36 +08:00 committed by GitHub
parent 1b5e0ee633
commit f81dd807ea
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 *save_host;
host = get_host(in->incomplete_data)
if (!host)
host = save_host;
else
free(save_host);
}
}
else
{