mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.http.server: Return request ID in header to aid debugging
Eases locating the request in logs
This commit is contained in:
parent
9480954e92
commit
4d9931786d
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ function handle_request(conn, request, finish_cb)
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue