diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-12-08 17:43:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-08 17:43:19 +0900 |
commit | 3a74fa60ca948b0bc1608ae0ad6e00236ccc846a (patch) | |
tree | a2a3036054bcfef88a5c61e0de7a3e6c7198387e /ext/node/polyfills/_http_outgoing.ts | |
parent | 2b3daa690dd8edd51b25ac2ea70ccb2928000fca (diff) |
fix(ext/node): allow null value for req.setHeader (#21391)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/node/polyfills/_http_outgoing.ts')
-rw-r--r-- | ext/node/polyfills/_http_outgoing.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/_http_outgoing.ts b/ext/node/polyfills/_http_outgoing.ts index 8882ade55..1feb3e746 100644 --- a/ext/node/polyfills/_http_outgoing.ts +++ b/ext/node/polyfills/_http_outgoing.ts @@ -249,7 +249,7 @@ export class OutgoingMessage extends Stream { } name = name.toString(); - headers[name.toLowerCase()] = [name, value.toString()]; + headers[name.toLowerCase()] = [name, String(value)]; return this; } |