We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88e5056 commit 4d5a821Copy full SHA for 4d5a821
lib/mlrest.js
@@ -493,7 +493,7 @@ function responseDispatcher(response) {
493
var inputHeader = isMultipart ? responseBoundary : responseType;
494
495
var responseLength = response.headers['content-length'];
496
- var isEmpty = (valcheck.isNullOrUndefined(responseLength)|| responseLength === '0');
+ var isEmpty = (!valcheck.isNullOrUndefined(responseLength) && responseLength === '0');
497
498
var expectedType = operation.responseType;
499
0 commit comments