fix: server-handler crash from filename (closes #386)

This commit is contained in:
Jacky Zhao 2023-08-21 17:01:18 -07:00
parent e0bcc8815e
commit 520ed4368d

View File

@ -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 =