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

Commit b4a310d

Browse files
committed
Release: Added uri encoding
1 parent ff6f484 commit b4a310d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendinblue-api",
3-
"version": "1.0.6",
3+
"version": "1.0.8",
44
"description": "Official SendinBlue provided API V2 npm library",
55
"main": "sendinblue-api.js",
66
"scripts": {

sendinblue-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ SendinblueAPI.prototype.delete_user = function(data, cb) {
870870
var email = data.email;
871871

872872
delete data.email;
873-
this.delete_request('user/' + email, '', function(error, result) {
873+
this.delete_request('user/' + encodeURIComponent(email), '', function(error, result) {
874874
if (error) {
875875
return cb(error, null);
876876
}

0 commit comments

Comments
 (0)