Skip to content

Commit 69b55d2

Browse files
an5erjuanarbol
authored andcommitted
doc: fix ambiguity in http.md and https.md
PR-URL: #48692 Fixes: #48688 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent c73cfcc commit 69b55d2

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
@@ -3351,14 +3351,13 @@ changes:
33513351

33523352
* `url` {string | URL}
33533353
* `options` {Object} Accepts the same `options` as
3354-
[`http.request()`][], with the `method` always set to `GET`.
3355-
Properties that are inherited from the prototype are ignored.
3354+
[`http.request()`][], with the method set to GET by default.
33563355
* `callback` {Function}
33573356
* Returns: {http.ClientRequest}
33583357

33593358
Since most requests are GET requests without bodies, Node.js provides this
33603359
convenience method. The only difference between this method and
3361-
[`http.request()`][] is that it sets the method to GET and calls `req.end()`
3360+
[`http.request()`][] is that it sets the method to GET by default and calls `req.end()`
33623361
automatically. The callback must take care to consume the response
33633362
data for reasons stated in [`http.ClientRequest`][] section.
33643363

doc/api/https.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ changes:
296296

297297
* `url` {string | URL}
298298
* `options` {Object | string | URL} Accepts the same `options` as
299-
[`https.request()`][], with the `method` always set to `GET`.
299+
[`https.request()`][], with the method set to GET by default.
300300
* `callback` {Function}
301301

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

0 commit comments

Comments
 (0)