From d0300f224668cde0e73a6ad4d3a6b906cc373765 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 21 Aug 2023 17:01:18 -0700 Subject: [PATCH] fix: server-handler crash from filename (closes #386) --- quartz/bootstrap-cli.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs index 808deba1..d068cd89 100755 --- a/quartz/bootstrap-cli.mjs +++ b/quartz/bootstrap-cli.mjs @@ -462,6 +462,12 @@ See the [documentation](https://quartz.jzhao.xyz) for how to get started. await serveHandler(req, res, { public: argv.output, directoryListing: false, + headers: [ + { + source: "**/*.html", + headers: [{ key: "Content-Disposition", value: "inline" }], + }, + ], }) const status = res.statusCode const statusString =