diff --git a/src/routes.js b/src/routes.js index 2a46afb..76fdfd6 100644 --- a/src/routes.js +++ b/src/routes.js @@ -29,7 +29,7 @@ router.post("/", async (ctx) => { return ctx.throw(406, "empty file"); } - const buffer = Buffer.from(ctx.request.rawBody, "binary"); + const buffer = Buffer.from(ctx.request.rawBody); const { iv, k, cipherText } = await encrypt(buffer); const uuid = addGist(iv, cipherText);