Skip to content

Commit

Permalink
fix(server) fix error RangeNotSatisfiableError
Browse files Browse the repository at this point in the history
  • Loading branch information
smarthomeagentur committed Aug 18, 2023
1 parent 7a4e4f4 commit ad82fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function main() {
await download(timeout);

//TODO check if we want a success download before start server
app.use("/", express.static(configparser.get_content_dir()), serveIndex(configparser.get_content_dir(), { icons: true }));
app.use("/", express.static(configparser.get_content_dir(), { acceptRanges: false }), serveIndex(configparser.get_content_dir(), { icons: true }));
app.listen(serverport, () => console.log("[SERVER] start file server on http://" + "localhost" + ":" + serverport));
}

Expand Down

0 comments on commit ad82fd3

Please sign in to comment.