summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-02-03 03:11:53 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2023-02-04 03:18:16 -0500
commitc46ea259127ae1eaf443ae98ab65e538456716cc (patch)
tree9e57caf1e4cb714d248640acc9ccc4c6eba969cc
parent76b8298f0367e7c1386e228ab4fdbfa41642cfff (diff)
downloadlighttpd-git-c46ea259127ae1eaf443ae98ab65e538456716cc.tar.gz
[core] path-info in debug trace may be unset
path-info in debug trace (debug.log-request-handling) may be unset
-rw-r--r--src/response.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/response.c b/src/response.c
index c9edcefd..fadab9f9 100644
--- a/src/response.c
+++ b/src/response.c
@@ -540,9 +540,8 @@ http_response_prepare (request_st * const r)
log_error(r->conf.errh, __FILE__, __LINE__,
"URI : %s", r->uri.path.ptr);
log_error(r->conf.errh, __FILE__, __LINE__,
- "Pathinfo : %s", r->pathinfo.ptr
- ? r->pathinfo.ptr
- : "");
+ "Pathinfo : %.*s",
+ BUFFER_INTLEN_PTR(&r->pathinfo));
}
/* call the handlers */