Skip to content

Commit f55547c

Browse files
authored
Merge pull request #29 from gd-programming/cleanup
fixed a mistake in the node example codes
2 parents 055b7a4 + 92abac2 commit f55547c

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
@@ -151,8 +151,8 @@ const data = queryString.stringify({
151151
http.request({
152152
host: "boomlings.com",
153153
path: target,
154-
port: 80
155-
method: "POST"
154+
port: 80,
155+
method: "POST",
156156
headers: {
157157
"Content-Type": "application/x-www-form-urlencoded",
158158
"Content-Length": Buffer.byteLength(data)
@@ -179,11 +179,11 @@ async fn main() -> reqwest::Result<()> {
179179

180180
// create post values
181181
let data = [
182-
("something", "value"),
182+
("something", "value"),
183183
("somethingElse", "otherValue")
184184
];
185185

186-
// send the request
186+
// send the request
187187
let req = reqwest::Client::new()
188188
.post(uri)
189189
.form(&data)

0 commit comments

Comments
 (0)