mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 00:07:00 +01:00
feat: improve support for binary & audio files
This commit is contained in:
1 parent
72c8f80bce
commit
3a00a27153
4 files changed
+28
-7
No files matched your search
@@ -41,6 +41,8 @@ router.post("/", async (req: express.Request, res: express.Response) => {
|
||||
anonymizer.once("transform", (data) => {
|
||||
if (!mime && data.isText) {
|
||||
res.contentType("text/plain");
|
||||
} else if (!mime && !data.isText) {
|
||||
res.contentType("application/octet-stream");
|
||||
}
|
||||
});
|
||||
function handleStreamError(error: Error) {
|
||||
|
||||
Reference in new issue
Block a user