Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
json stringify instead of querystring.stringify
  • Loading branch information
todortotev committed May 22, 2021
commit 65059f4247a2729e96f5024950dd38d0059d877b
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,7 @@ upload a file with a POST request, then write to the `ClientRequest` object.
```js
const http = require("http")
Comment thread
todortotev marked this conversation as resolved.
Outdated

const postData = querystring.stringify({
const postData = JSON.stringify({
Comment thread
todortotev marked this conversation as resolved.
'msg': 'Hello World!'
});

Expand Down