Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
Jerald authored Jul 29, 2018
commit af028b7449227bd88ed3256584d009fa09c849d4
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down