diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-12-30 00:40:42 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-12-30 00:40:42 -0800 |
| commit | aefc6e29b16fb514a40c4f12333cdd156c264102 (patch) | |
| tree | a775b5029ab4f7e2ed23ac46eb32b92f11f24a75 /tests/httpclient.c | |
| parent | 26f75f4d061a4480a01abfe3c07d41dbf0f781f0 (diff) | |
| download | nng-aefc6e29b16fb514a40c4f12333cdd156c264102.tar.gz nng-aefc6e29b16fb514a40c4f12333cdd156c264102.tar.bz2 nng-aefc6e29b16fb514a40c4f12333cdd156c264102.zip | |
Insert a cache control header to attempt to prevent caching.
Diffstat (limited to 'tests/httpclient.c')
| -rw-r--r-- | tests/httpclient.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
