summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-11-23 21:09:54 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-11-24 08:31:59 +0100
commit7c6ceb46010971583ec4a19f9816aeae1041af51 (patch)
treec39cebf7a3af4ccc6b9a7d5edb6d55331f296108
parente4fb574acba84e51feab84f79c317f68da363b85 (diff)
downloadpacredir-7c6ceb46010971583ec4a19f9816aeae1041af51.tar.gz
pacredir-7c6ceb46010971583ec4a19f9816aeae1041af51.tar.zst
drop the 'Cache-Control: no-cache' header in http response...
... as pacman upstream will never use it.
-rw-r--r--pacredir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pacredir.c b/pacredir.c
index c54d344..1982262 100644
--- a/pacredir.c
+++ b/pacredir.c
@@ -570,7 +570,6 @@ response:
page = malloc(strlen(PAGE404) + strlen(basename) + 1);
sprintf(page, PAGE404, basename);
response = MHD_create_response_from_buffer(strlen(page), (void*) page, MHD_RESPMEM_MUST_FREE);
- ret = MHD_add_response_header(response, "Cache-Control", "no-cache");
ret = MHD_queue_response(connection, MHD_HTTP_NOT_FOUND, response);
}