This commit is contained in:
zefie
2025-06-17 02:32:29 -04:00
parent cd729193dd
commit 13909f30a3

View File

@@ -1662,7 +1662,7 @@ async function sendToClient(socket, headers_obj, data = null) {
// send to client
if (socket.res) {
var resCode = parseInt(headers_obj.Status.substr(0, 3) || 500);
var resCode = parseInt(headers_obj.Status.substr(0, 3)) || 500;
socket.res.writeHead(resCode, headers_obj);
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);