From af028b7449227bd88ed3256584d009fa09c849d4 Mon Sep 17 00:00:00 2001 From: Oscar Date: Sun, 29 Jul 2018 14:53:49 -0700 Subject: [PATCH] Fix for obscure issue with https library We're encountering an error from the usage of req.end() related to the first argument type. Although it was being called with no argument, this code is considered equivalent in the api and shouldn't have the issue. --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 01371e9..7751f58 100644 --- a/index.js +++ b/index.js @@ -103,8 +103,7 @@ Plotly.prototype.plot = function(data, graphOptions, callback) { callback(err); }); - req.write(urlencoded); - req.end(); + req.end(urlencoded, 'utf8'); }; Plotly.prototype.stream = function(token, callback) {