This commit is contained in:
Dragon Fire
2020-08-25 20:43:31 -04:00
parent 69d32e7c6e
commit a40f189c2d
+2 -2
View File
@@ -63,8 +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')
.set({ 'Content-Type': 'multipart/form-data' })
.attach({ image_file: imgData.body })
.set({ 'content-type': 'multipart/form-data' })
.attach('image_file', imgData.body)
.query({
api_key: FACEPLUSPLUS_KEY,
api_secret: FACEPLUSPLUS_SECRET,