]> granicus.if.org Git - libevent/commitdiff
Another tweak to https-client.c
authorNick Mathewson <nickm@torproject.org>
Wed, 10 Apr 2013 21:56:54 +0000 (17:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 10 Apr 2013 21:56:54 +0000 (17:56 -0400)
sample/https-client.c

index 82351020111aa52c0128f2ffd3eaf3a0d4023a29..b32e430422afc003786f6e94ea9536ee5fe9b45a 100644 (file)
@@ -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. */