Add files via upload

This commit is contained in:
mmmdbybyd 2018-11-24 13:56:59 +08:00 committed by GitHub
parent 50c773db38
commit 1b5e0ee633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
http.c
View File

@ -487,16 +487,6 @@ 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
{
@ -578,4 +568,3 @@ void create_listen(char *ip, int port)