aboutsummaryrefslogtreecommitdiff
path: root/src/engine.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-29 10:57:24 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-29 10:57:42 +0530
commit457a182f825f5bcdf862dbc3d3a63378f0fcc60b (patch)
tree8ec79674a44a614e87809188633cd82f57755487 /src/engine.c
parent2464cc98a7aca095db878284e7f412ac6160deea (diff)
don't ingest the config if it is present
Diffstat (limited to 'src/engine.c')
-rw-r--r--src/engine.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine.c b/src/engine.c
index 908c445..6584525 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -186,6 +186,12 @@ handle_eachdo(char **buffer, key_match_t *match, directive_t *directive)
list_t *
engine_ingest(char **buffer)
{
+ /* don't ingest the config if it is present */
+ char *p = strstr(*buffer, "---");
+ if (p != NULL) {
+ strcpy(*buffer, p + strlen("---"));
+ }
+
key_match_t *match;
list_t *content_headers = list_create(sizeof(contentfor_operand_t));
if (content_headers == NULL) {