This commit is contained in:
zefie
2025-06-17 02:31:13 -04:00
parent 831cf12ea4
commit cd729193dd

View File

@@ -1662,7 +1662,7 @@ async function sendToClient(socket, headers_obj, data = null) {
// send to client // send to client
if (socket.res) { if (socket.res) {
var resCode = parseInt(headers_obj.Status.substr(0, 3)); var resCode = parseInt(headers_obj.Status.substr(0, 3) || 500);
socket.res.writeHead(resCode, headers_obj); socket.res.writeHead(resCode, headers_obj);
socket.res.end(data); socket.res.end(data);
if (minisrv_config.config.debug_flags.show_headers) console.debug(" * Outgoing PC headers on " + socket.service_name + " socket ID", socket.id, headers_obj); if (minisrv_config.config.debug_flags.show_headers) console.debug(" * Outgoing PC headers on " + socket.service_name + " socket ID", socket.id, headers_obj);