From 95acdaa353419fc53e4324f34fa7e591f5bb5b38 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 10 Apr 2013 17:56:54 -0400 Subject: [PATCH] Another tweak to https-client.c --- sample/https-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sample/https-client.c b/sample/https-client.c index 82351020..b32e4304 100644 --- a/sample/https-client.c +++ b/sample/https-client.c @@ -74,7 +74,8 @@ http_request_done(struct evhttp_request *req, void *ctx) evhttp_request_get_response_code(req), evhttp_request_get_response_code_line(req)); - while ((nread = evbuffer_remove(req->input_buffer, buffer, sizeof(buffer))) + while ((nread = evbuffer_remove(evhttp_request_get_input_buffer(req), + buffer, sizeof(buffer))) > 0) { /* These are just arbitrary chunks of 256 bytes. * They are not lines, so we can't treat them as such. */