2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-21 13:24:11 +03:00

__dirname is not defined (#5269)

Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
HaiTao
2022-11-23 02:33:49 +08:00
committed by GitHub
parent 86eeff0e68
commit 7a4c0ea72b
+1 -1
View File
@@ -11,7 +11,7 @@ function pipeFileToResponse(res, file, type) {
});
}
fs.createReadStream(path.join(__dirname, file)).pipe(res);
fs.createReadStream(path.join(path.resolve() ,'sandbox', file)).pipe(res);
}
server = http.createServer(function (req, res) {