Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 11, 2023
1 parent 2244936 commit 76a6d52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"@seald-io/nedb": "^3.1.0",
"@types/bencode": "^2.0.1",
"@types/body-parser": "^1.19.2",
"@types/compression": "^1.7.2",
"@types/content-disposition": "^0.5.5",
"@types/cookie-parser": "^1.4.3",
"@types/create-torrent": "^5.0.0",
Expand Down
4 changes: 1 addition & 3 deletions server/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ const constructRoutes = async (fastify: FastifyInstance) => {

if (config.serveAssets !== false) {
// Disable ETag
// app.set('etag', false);
app.set('etag', false);

// Enable compression
// app.use(compression());
app.use((_req, res, next) => {
res.flush = () => {
// do nothing.
Expand Down

0 comments on commit 76a6d52

Please sign in to comment.