From 69d32e7c6e163789564c071faeddfd24e2b64459 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 25 Aug 2020 20:41:26 -0400 Subject: [PATCH] Fix --- commands/analyze/face.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/analyze/face.js b/commands/analyze/face.js index 47671e14..f3039985 100644 --- a/commands/analyze/face.js +++ b/commands/analyze/face.js @@ -63,7 +63,7 @@ module.exports = class FaceCommand extends Command { if (Buffer.byteLength(imgData.body) >= 2e+6) return 'size'; const { body } = await request .post('https://api-us.faceplusplus.com/facepp/v3/detect') - .headers({ 'Content-Type': 'multipart/form-data' }) + .set({ 'Content-Type': 'multipart/form-data' }) .attach({ image_file: imgData.body }) .query({ api_key: FACEPLUSPLUS_KEY,