Skip to content

Commit f90339a

Browse files
committed
fix: remove dead redirectToSlash option from static directory handler
redirectToSlash has no effect because the server uses stripTrailingSlash. The index:false option alone is sufficient to prevent the EISDIR crash.
1 parent 90df35f commit f90339a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

workers/api.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,6 @@ Include your token in requests using one of these methods:
14981498
handler: {
14991499
directory: {
15001500
path: pathlib.join(__dirname, '..', 'static'),
1501-
redirectToSlash: true,
15021501
index: false
15031502
}
15041503
},

0 commit comments

Comments
 (0)