eugef / node-mocks-http

Mock 'http' objects for testing Express routing functions
Other
753 stars 133 forks source link

Allow array of strings (or undefined) in headers #193

Closed chmac closed 5 years ago

chmac commented 5 years ago

This matches the types here https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e9e404ac8e23dcafd02f57db02915d848c4454b3/types/node/http.d.ts#L63

This is the simplest change that allows a header to be undefined or an array of strings. I recommend merging #192 instead of this one though...

eugef commented 5 years ago

Closed in favour of other PR