Commit 0d7cd5f660c5b9b2ecd562ec1ef28329d86b0edd
Exists in
master
and in
4 other branches
Merge branch 'master' of gitlab.lavid.ufpb.br:vlibras/vlibras-translate-container
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
translate-api/controllers/translate.js
| ... | ... | @@ -25,7 +25,7 @@ exports.translate = function(req, res, next) { |
| 25 | 25 | amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { |
| 26 | 26 | if (err) |
| 27 | 27 | return error.internalError('An internal communication error has occurred.', next); |
| 28 | - res.status(200).send(message); | |
| 28 | + res.status(200).send(message.replace(/\"/g, "")); | |
| 29 | 29 | }); |
| 30 | 30 | }); |
| 31 | 31 | }; |
| ... | ... | @@ -44,7 +44,7 @@ exports.translateURL = function(req, res, next) { |
| 44 | 44 | amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { |
| 45 | 45 | if (err) |
| 46 | 46 | return error.internalError('An internal communication error has occurred.', next); |
| 47 | - res.status(200).send(message); | |
| 47 | + res.status(200).send(message.replace(/\"/g, "")); | |
| 48 | 48 | }); |
| 49 | 49 | }); |
| 50 | 50 | }; | ... | ... |