Skip to content

Commit

Permalink
Respond with full request is node default false. Should return body i…
Browse files Browse the repository at this point in the history
…nstead of full response.
  • Loading branch information
Phara0h committed Jul 7, 2020
1 parent b2f909e commit 28a4423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ WWB.Hive.HivePoke({
"d": "1",
"target": "http://127.0.0.1:4269/hive/status"
}).then(response=>{
console.log(response.body)
console.log(response)
})

// Wait 2 seconds and show the report
setTimeout(async ()=>{
console.log((await WWB.Hive.HiveStatusReport()).body)
console.log((await WWB.Hive.HiveStatusReport()))
},2000)

```
Expand Down Expand Up @@ -93,7 +93,7 @@ Travelling.Auth.login({
"username":"test",
"password":"password1234"
}).then(response=>{
console.log(response.body)
console.log(response)
})

```
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ var convertToOptions = function (request)
body = ''
}
var options = `{
method: '${request.method}', resolveWithFullResponse:true, simple: false, ${parseUrl(request.url)}, ${body} ${parseHeader(body || '',request.header)}
method: '${request.method}', simple: false, ${parseUrl(request.url)}, ${body} ${parseHeader(body || '',request.header)}
}`;

return options;
Expand Down

0 comments on commit 28a4423

Please sign in to comment.