From 692b8f5b7f96a078edaa3f864e92d217883e983d Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 17:22:40 +0000 Subject: [PATCH] JSON.parse fix? --- commands/random/quotes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/random/quotes.js b/commands/random/quotes.js index 18a01ee9..fabbe9e5 100644 --- a/commands/random/quotes.js +++ b/commands/random/quotes.js @@ -24,7 +24,8 @@ module.exports = class QuotesCommand extends commando.Command { .get('https://andruxnet-random-famous-quotes.p.mashape.com/') .set({ 'X-Mashape-Key': config.mashapekey, - 'Accept': 'application/json' + 'Accept': 'application/json', + 'Content-Type": "application/x-www-form-urlencoded" }) .query({ cat: randomTypes