http: throw if 'host' agent header is not a string value · nodejs/node@2daf883 · GitHub
Skip to content

Commit 2daf883

Browse files
gntemTrott
authored andcommitted
http: throw if 'host' agent header is not a string value
If the 'host' agent header is an array or other non-string value, throw. PR-URL: #29568 Fixes: #29408 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent a0c6cf8 commit 2daf883

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

lib/_http_agent.js

Lines changed: 10 additions & 1 deletion
Lines changed: 23 additions & 0 deletions

0 commit comments

Comments
 (0)