This commit is contained in:
Dragon Fire
2020-08-25 20:40:30 -04:00
parent b6bf7c82ef
commit 4d340fea92
+2 -1
View File
@@ -63,7 +63,8 @@ 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')
.attach('image_file', imgData.body)
.headers({ 'Content-Type': 'multipart/form-data' })
.attach({ image_file: imgData.body })
.query({
api_key: FACEPLUSPLUS_KEY,
api_secret: FACEPLUSPLUS_SECRET,