From aaa1c3b9b774cbf8f3c167966be9f5b97f713d62 Mon Sep 17 00:00:00 2001 From: Wesnydy Ribeiro Date: Wed, 29 Mar 2017 12:59:58 -0300 Subject: [PATCH] Remove double quotes from response --- translate-api/controllers/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translate-api/controllers/translate.js b/translate-api/controllers/translate.js index 88a0946..2549610 100644 --- a/translate-api/controllers/translate.js +++ b/translate-api/controllers/translate.js @@ -25,7 +25,7 @@ exports.translate = function(req, res, next) { amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { if (err) return error.internalError('An internal communication error has occurred.', next); - res.status(200).send(message); + res.status(200).send(message.replace(/\"/g, "")); }); }); }; @@ -44,7 +44,7 @@ exports.translateURL = function(req, res, next) { amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { if (err) return error.internalError('An internal communication error has occurred.', next); - res.status(200).send(message); + res.status(200).send(message.replace(/\"/g, "")); }); }); }; -- libgit2 0.21.2