# HG changeset patch # User Kim Alvefur # Date 1685317351 -7200 # Node ID 6b5e92949051ff26d913c3d964d1bb83ca2ebb95 # Parent 7eb6244b4984ffea98c70f026eb7b3361e8ba0fe net.http.server: Return request ID in header to aid debugging Eases locating the request in logs diff -r 7eb6244b4984 -r 6b5e92949051 net/http/server.lua --- 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;