Add files via upload
This commit is contained in:
parent
50c773db38
commit
1b5e0ee633
11
http.c
11
http.c
@ -487,16 +487,6 @@ void tcp_in(conn_t *in)
|
|||||||
free(host);
|
free(host);
|
||||||
return;
|
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
|
else
|
||||||
{
|
{
|
||||||
@ -578,4 +568,3 @@ void create_listen(char *ip, int port)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user