Skip to content

Commit

Permalink
Also allow "straightjacket" spelling in configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Aug 24, 2024
1 parent a3b8a1b commit f9ebc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/lwan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f9ebc66

Please sign in to comment.