Skip to content

Commit 42ecd46

Browse files
an5erruyadorno
authored andcommittedSep 16, 2023
doc: fix ambiguity in http.md and https.md
PR-URL: #48692 Fixes: #48688 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent e78824e commit 42ecd46

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
 

‎doc/api/http.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3297,14 +3297,13 @@ changes:
32973297

32983298
* `url` {string | URL}
32993299
* `options` {Object} Accepts the same `options` as
3300-
[`http.request()`][], with the `method` always set to `GET`.
3301-
Properties that are inherited from the prototype are ignored.
3300+
[`http.request()`][], with the method set to GET by default.
33023301
* `callback` {Function}
33033302
* Returns: {http.ClientRequest}
33043303

33053304
Since most requests are GET requests without bodies, Node.js provides this
33063305
convenience method. The only difference between this method and
3307-
[`http.request()`][] is that it sets the method to GET and calls `req.end()`
3306+
[`http.request()`][] is that it sets the method to GET by default and calls `req.end()`
33083307
automatically. The callback must take care to consume the response
33093308
data for reasons stated in [`http.ClientRequest`][] section.
33103309

‎doc/api/https.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ changes:
285285

286286
* `url` {string | URL}
287287
* `options` {Object | string | URL} Accepts the same `options` as
288-
[`https.request()`][], with the `method` always set to `GET`.
288+
[`https.request()`][], with the method set to GET by default.
289289
* `callback` {Function}
290290

291291
Like [`http.get()`][] but for HTTPS.

0 commit comments

Comments
 (0)
Please sign in to comment.