Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct the type of DispatchOptions["headers"]
According to core/util@parseHeaders, the current behavior is: - By default, the entry type is a `string`. - The entry type turns to a `string[]` when there are duplicated entries This behavior is not as same as what `node:http` does currently; therefore, `IncomingHttpHeaders` can't reflect our parsed data. This commit attempts to reflect this parsing behavior. Fixed nodejs#1892 Signed-off-by: pan93412 <pan93412@gmail.com>
- Loading branch information