From aefc6e29b16fb514a40c4f12333cdd156c264102 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 30 Dec 2019 00:40:42 -0800 Subject: Insert a cache control header to attempt to prevent caching. --- tests/httpclient.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/httpclient.c b/tests/httpclient.c index 3e6351be..ea6b8f48 100644 --- a/tests/httpclient.c +++ b/tests/httpclient.c @@ -224,6 +224,8 @@ TestMain("HTTP Client", { }); nng_aio_set_timeout(aio, 10); // 10 msec timeout + So(nng_http_req_set_header(req, "Cache-Control", "no-cache") == + 0); nng_http_client_transact(cli, req, res, aio); nng_aio_wait(aio); So(nng_aio_result(aio) == NNG_ETIMEDOUT); -- cgit v1.2.3-70-g09d2