mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-22 09:16:47 +02:00
fix: fix webview & improve download progress
This commit is contained in:
@@ -100,7 +100,7 @@ async function webView(req: express.Request, res: express.Response) {
|
||||
if (f.extension() == "md") {
|
||||
const content = await streamToString(await f.anonymizedContent());
|
||||
res
|
||||
.contentType("html")
|
||||
.contentType("text/html")
|
||||
.send(marked.marked(content, { headerIds: false, mangle: false }));
|
||||
} else {
|
||||
f.send(res);
|
||||
|
||||
Reference in New Issue
Block a user