From a7d7286d8de39daaf90952eeea77e5e83d598eae Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 9 Aug 2023 19:23:52 +0200 Subject: [PATCH] accesslog: Fix %p bug. --- src/accesslog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accesslog.c b/src/accesslog.c index e419587..0c7ef8d 100644 --- a/src/accesslog.c +++ b/src/accesslog.c @@ -97,7 +97,7 @@ static void logitem(struct logdata *data, char o, char *d) } break; case 'p': - if(!data->resp || ((h = getheader(data->req, d)) == NULL)) { + if(!data->resp || ((h = getheader(data->resp, d)) == NULL)) { putc('-', out); } else { qputs(h, out); -- 2.11.0