From 12c6bbab5d81f10bd67b4c6a0c3eec2fc062f0b2 Mon Sep 17 00:00:00 2001 From: an5er <1318861442@qq.com> Date: Fri, 7 Jul 2023 22:40:03 +0800 Subject: [PATCH] fix https.md --- doc/api/http.md | 2 +- doc/api/https.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 2c566eb2b1e68d..a0437f329bb148 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3357,7 +3357,7 @@ changes: Since most requests are GET requests without bodies, Node.js provides this convenience method. The only difference between this method and -[`http.request()`][] is that it sets the method to GET and calls `req.end()` +[`http.request()`][] is that it sets the method to GET by default and calls `req.end()` automatically. The callback must take care to consume the response data for reasons stated in [`http.ClientRequest`][] section. diff --git a/doc/api/https.md b/doc/api/https.md index 99927cebbda96e..20f427d3b7dfd9 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -296,7 +296,7 @@ changes: * `url` {string | URL} * `options` {Object | string | URL} Accepts the same `options` as - [`https.request()`][], with the `method` always set to `GET`. + [`https.request()`][], with the method set to GET by default. * `callback` {Function} Like [`http.get()`][] but for HTTPS.