|
var reqOpts = { |
|
url: this._endpoint, |
|
method: 'POST', |
|
headers: { |
|
'Content-Type': 'application/json', |
|
'Content-Length': this._request.length |
|
}, |
|
json: true, |
|
timeout: config.timeout, |
|
body: this._request |
|
}; |
this._request is JS Object. It does not contain a length property.
These lines of code can be removed, since they do not affect anything:
|
headers: { |
|
'Content-Type': 'application/json', |
|
'Content-Length': this._request.length |
|
}, |
Proof in the request docs:
https://github.com/request/request#requestoptions-callback
sdk-node/lib/apicontrollersbase.js
Lines 83 to 93 in ab098d7
this._requestis JS Object. It does not contain a length property.These lines of code can be removed, since they do not affect anything:
sdk-node/lib/apicontrollersbase.js
Lines 86 to 89 in ab098d7
Proof in the
requestdocs:https://github.com/request/request#requestoptions-callback