From f9ebc6635078ad1e88b8517648a4ed4690efb71d Mon Sep 17 00:00:00 2001 From: "L. Pereira" Date: Sat, 24 Aug 2024 07:04:12 -0700 Subject: [PATCH] Also allow "straightjacket" spelling in configuration files --- src/lib/lwan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lwan.c b/src/lib/lwan.c index 2cba18e44..361760371 100644 --- a/src/lib/lwan.c +++ b/src/lib/lwan.c @@ -723,7 +723,7 @@ static bool setup_from_config(struct lwan *lwan, const char *path) } else { config_error(conf, "Only one site may be configured"); } - } else if (streq(line->key, "straitjacket")) { + } else if (streq(line->key, "straitjacket") || streq(line->key, "straightjacket")) { lwan_straitjacket_enforce_from_config(conf); } else if (streq(line->key, "headers")) { parse_global_headers(conf, lwan);