Comparison

net/http.lua @ 12881:91baddaeea84 0.12

net.http: Add missing log parameter
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Feb 2023 22:37:54 +0000
parent 12273:c0f49a4026f8
child 12974:ba409c67353b
child 13505:a97c11584042
comparison
equal deleted inserted replaced
12879:09a53ed8f4d5 12881:91baddaeea84
92 request.id, 92 request.id,
93 r.chunked and "chunked, " or "", 93 r.chunked and "chunked, " or "",
94 r.body_length and ("%d bytes"):format(r.body_length) or "unknown length" 94 r.body_length and ("%d bytes"):format(r.body_length) or "unknown length"
95 ); 95 );
96 if request.streaming_handler then 96 if request.streaming_handler then
97 log("debug", "Request '%s': Streaming via handler"); 97 log("debug", "Request '%s': Streaming via handler", request.id);
98 r.body_sink, finalize_sink = request.streaming_handler(r); 98 r.body_sink, finalize_sink = request.streaming_handler(r);
99 end 99 end
100 return; 100 return;
101 elseif finalize_sink then 101 elseif finalize_sink then
102 log("debug", "Request '%s': Finalizing response stream"); 102 log("debug", "Request '%s': Finalizing response stream");