http reqs still have statusCode

This commit is contained in:
Johannes Zellner
2025-02-17 14:26:17 +01:00
parent aa65af10b6
commit 11c64f3035
+1 -1
View File
@@ -40,7 +40,7 @@ function proxy(kind) {
};
const sftpReq = http.request(opts, function (sftpRes) {
res.writeHead(sftpRes.status, sftpRes.headers);
res.writeHead(sftpRes.statusCode, sftpRes.headers);
// note: these are intentionally not handled. response has already been written. do not forward to connect-lastmile
// sftpRes.on('error', (error) => next(new HttpError(500, `filemanager error: ${error.message} ${error.code}`)));
// sftpRes.on('end', () => next());