Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from reside-eng/pdf-hotfix
Browse files Browse the repository at this point in the history
fix: pdfs working
  • Loading branch information
mrudling authored Jun 16, 2020
2 parents 3d4436b + c55a902 commit 6a62a7b
Show file tree
Hide file tree
Showing 3 changed files with 1,839 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "docusign-esign",
"name": "@side/docusign-esign",
"version": "5.4.0",
"description": "DocuSign Node.js API client.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
// Rely on SuperAgent for parsing response body.
// See http://visionmedia.github.io/superagent/#parsing-response-bodies
var data = response.body || (response.res && response.res.data);
if (data == null || !Object.keys(data).length) {
if (typeof data !== 'string' && (data == null || !Object.keys(data).length)) {
// SuperAgent does not always produce a body; use the unparsed response as a fallback
data = response.text;
}
Expand Down
Loading

0 comments on commit 6a62a7b

Please sign in to comment.