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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user