Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Not error] Invalid property length of this._request #47

Copy link
Copy link
@awwit

Description

@awwit
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.