Software /
code /
prosody
Changeset
13118:6b5e92949051
net.http.server: Return request ID in header to aid debugging
Eases locating the request in logs
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 May 2023 01:42:31 +0200 |
parents | 13117:7eb6244b4984 |
children | 13119:df57c62165fc |
files | net/http/server.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/server.lua Sun May 28 22:33:45 2023 +0200 +++ b/net/http/server.lua Mon May 29 01:42:31 2023 +0200 @@ -260,7 +260,7 @@ request = request; is_head_request = is_head_request; status_code = 200; - headers = { date = date_header, connection = response_conn_header }; + headers = { date = date_header; connection = response_conn_header; x_request_id = request.id }; persistent = persistent; conn = conn; send = _M.send_response;