Skip to content

Commit 2bfaf28

Browse files
committed
feature: gritty: sendFile: add support of dot files (#452)
1 parent 871bee8 commit 2bfaf28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/gritty.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ function _terminalFn(options, req, res, next) {
6565

6666
function staticFn(req, res) {
6767
const file = path.normalize(DIR_ROOT + req.url);
68-
res.sendFile(file);
68+
res.sendFile(file, {
69+
dotfiles: 'allow',
70+
});
6971
}
7072

7173
function createTerminal({command, env, cwd, cols, rows, pty = _pty}) {

0 commit comments

Comments
 (0)