Skip to content

Commit 92abac2

Browse files
committed
fixed a mistake in the node example codes
1 parent d9dee64 commit 92abac2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/endpoints/request.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ const data = queryString.stringify({
139139
http.request({
140140
host: "boomlings.com",
141141
path: target,
142-
port: 80
143-
method: "POST"
142+
port: 80,
143+
method: "POST",
144144
headers: {
145145
"Content-Type": "application/x-www-form-urlencoded",
146146
"Content-Length": Buffer.byteLength(data)
@@ -167,11 +167,11 @@ async fn main() -> reqwest::Result<()> {
167167

168168
// create post values
169169
let data = [
170-
("something", "value"),
170+
("something", "value"),
171171
("somethingElse", "otherValue")
172172
];
173173

174-
// send the request
174+
// send the request
175175
let req = reqwest::Client::new()
176176
.post(uri)
177177
.form(&data)

0 commit comments

Comments
 (0)