Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
encode the callback URL when passing it to STT
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Lavigne committed Mar 31, 2017
1 parent 0e55e58 commit 9de0ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function registerCallback() {
username: process.env.STT_USERNAME,
password: process.env.STT_PASSWORD,
},
url: `${process.env.STT_URL}/v1/register_callback?callback_url=${process.env.STT_CALLBACK_URL}&user_secret=${process.env.STT_CALLBACK_SECRET}`
url: `${process.env.STT_URL}/v1/register_callback?callback_url=${encodeURIComponent(process.env.STT_CALLBACK_URL)}&user_secret=${encodeURIComponent(process.env.STT_CALLBACK_SECRET)}`
}, (err, response, body) => {
if (!err) {
WARN(body);
Expand Down

0 comments on commit 9de0ef5

Please sign in to comment.