From 8cab868003ff414fd4b4771d133c5b6a871cd02f Mon Sep 17 00:00:00 2001 From: Dany LE Date: Sun, 21 Aug 2022 17:01:34 +0200 Subject: [PATCH] Update http_server.c --- http_server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http_server.c b/http_server.c index 1c866a7..e67ab77 100644 --- a/http_server.c +++ b/http_server.c @@ -562,6 +562,7 @@ int rule_check(const char *k, const char *v, const char *host, const char *_url, char *tmp, rep[10]; int idx = 0; memset(rep, 0, 10); + LOG("Verify %s on %s or %s", k, url, host); // 1 group if (!host || !(ret = regex_match(k, host, 10, key_matches))) { @@ -577,6 +578,7 @@ int rule_check(const char *k, const char *v, const char *host, const char *_url, free(query); return 0; } + LOG("Match found on", target); tmp = (char *)v; char *search = "<([a-zA-Z0-9]+)>"; while ((ret = regex_match(search, tmp, 2, val_matches))) @@ -621,6 +623,7 @@ int rule_check(const char *k, const char *v, const char *host, const char *_url, } free(url); free(query); + LOG("New URI is %s", buf); return 1; }