unjs / unenv

๐Ÿ•Š๏ธ Convert javaScript code to be runtime agnostic
MIT License
358 stars 19 forks source link

fix(node): preserve http number header type with `setHeader` #119

Closed Hebilicious closed 1 year ago

Hebilicious commented 1 year ago

๐Ÿ”— Linked issue

fix https://github.com/unjs/unenv/issues/118

โ“ Type of change

๐Ÿ“š Description

This PR changes the odd unenv behaviour that joined multiple value headers instead of preserving the array. This brings setHeader behaviour in line with appendHeader when it comes to multiple values headers.

๐Ÿ“ Checklist