summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2020-01-12 15:31:50 +0300
committerAzat Khuzhin <azat@libevent.org>2020-01-12 15:34:01 +0300
commit9c91fe14797e932768115c24ad2b3c9cb362eb22 (patch)
tree0037601d95936cc729a6002c41859252d57368b3 /sample
parent415ddee3379def05c93be740ada59204fbadb0af (diff)
downloadlibevent-9c91fe14797e932768115c24ad2b3c9cb362eb22.tar.gz
http-connect: do not check connection on GET cb
Diffstat (limited to 'sample')
-rw-r--r--sample/http-connect.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sample/http-connect.c b/sample/http-connect.c
index b08bb25d..53f816d3 100644
--- a/sample/http-connect.c
+++ b/sample/http-connect.c
@@ -59,11 +59,8 @@ static void get_cb(struct evhttp_request *req, void *arg)
{
ev_ssize_t len;
struct evbuffer *evbuf;
- struct evhttp_connection *evcon;
VERIFY(req);
- evcon = evhttp_request_get_connection(req);
- VERIFY(evcon);
evbuf = evhttp_request_get_input_buffer(req);
len = evbuffer_get_length(evbuf);