summaryrefslogtreecommitdiff
path: root/src/config/headers.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-31 01:34:37 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-31 01:34:37 +0000
commitac54bede6aa6953253d1b04443c5bc6062676060 (patch)
treefb6e8e05261dcdc4a3f5a339e8dc8bec4af5a823 /src/config/headers.c
parent28e7bfc363aefc591955794e9c031f6962274368 (diff)
downloadtipidee-ac54bede6aa6953253d1b04443c5bc6062676060.tar.xz
Some bugfixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/config/headers.c')
-rw-r--r--src/config/headers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/headers.c b/src/config/headers.c
index 4fcdf7d..077a733 100644
--- a/src/config/headers.c
+++ b/src/config/headers.c
@@ -25,6 +25,7 @@ static struct builtinheaders_s const builtinheaders[] =
{ .key = "Allow", .value = 0, .overridable = 0 },
{ .key = "Cache-Control", .value = "private", .overridable = 1 },
{ .key = "Connection", .value = 0, .overridable = 0 },
+ { .key = "Content-Length", .value = 0, .overridable = 0 },
{ .key = "Content-Security-Policy", .value = "default-src 'self'; style-src 'self' 'unsafe-inline';", .overridable = 1 },
{ .key = "Date", .value = 0, .overridable = 0 },
{ .key = "Referrer-Policy", .value = "no-referrer-when-downgrade", .overridable = 1 },
@@ -48,7 +49,6 @@ int header_allowed (char const *key)
{
static char const *const nope[] =
{
- "Content-Length",
"Content-Type",
"Location"
} ;