mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 23:35:02 -04:00
sample/http-connect: fix compilation with VS2010
Fixes: nmathewson/Libevent#137
This commit is contained in:
parent
6bf2061c4b
commit
0abe4eba83
@ -97,10 +97,8 @@ int main(int argc, const char **argv)
|
||||
VERIFY(base = event_base_new());
|
||||
VERIFY(evcon = evhttp_connection_base_new(base, NULL,
|
||||
evhttp_uri_get_host(proxy), evhttp_uri_get_port(proxy)));
|
||||
connect_base = (struct connect_base){
|
||||
.evcon = evcon,
|
||||
.location = location,
|
||||
};
|
||||
connect_base.evcon = evcon;
|
||||
connect_base.location = location;
|
||||
VERIFY(req = evhttp_request_new(connect_cb, &connect_base));
|
||||
|
||||
evhttp_add_header(req->output_headers, "Connection", "keep-alive");
|
||||
|
Loading…
x
Reference in New Issue
Block a user