diff options
author | Gerrard Lindsay <gerrardalindsay@gmail.com> | 2023-05-13 13:09:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 17:09:26 +0000 |
commit | 5ec0f39a7a565b5a82fe90ba9f095731a7b8b005 (patch) | |
tree | 20c8778d8d43f2862b59f97b3d84002753fd4759 /lib/http.js | |
parent | 23e6b12edb0b792b82ff948e3b6c5cb2038c17bf (diff) | |
download | node-new-5ec0f39a7a565b5a82fe90ba9f095731a7b8b005.tar.gz |
http: prevent writing to the body when not allowed by HTTP spec
PR-URL: https://github.com/nodejs/node/pull/47732
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'lib/http.js')
-rw-r--r-- | lib/http.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js index a1f811c695..d86d36d12c 100644 --- a/lib/http.js +++ b/lib/http.js @@ -55,6 +55,7 @@ let maxHeaderSize; * requireHostHeader?: boolean; * joinDuplicateHeaders?: boolean; * highWaterMark?: number; + * rejectNonStandardBodyWrites?: boolean; * }} [opts] * @param {Function} [requestListener] * @returns {Server} |