Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit ff6f484

Browse files
authored
Merge pull request #6 from Bugari/master
added uri encoding to email
2 parents 8412f89 + 128b3f6 commit ff6f484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sendinblue-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ SendinblueAPI.prototype.get_user = function(data, cb) {
853853
var email = data.email;
854854

855855
delete data.email;
856-
this.get_request('user/' + email, '', function(error, result) {
856+
this.get_request('user/' + encodeURIComponent(email), '', function(error, result) {
857857
if (error) {
858858
return cb(error, null);
859859
}
@@ -1252,4 +1252,4 @@ SendinblueAPI.prototype.delete_sender = function(data, cb) {
12521252
}
12531253
return cb(null, result);
12541254
});
1255-
};
1255+
};

0 commit comments

Comments
 (0)