You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
I am working on something that will need to do a reverse proxy request in some cases. It would be nice to be able to simply pipe the ClientResponse headers into the ServerResponse headers somehow. Currently you have to deal with two conversions:
lowercase to correct mixed case header names,
conversion between array-type values to their correct string representation
Since the http request parser converts the header data before _addHeaderLine is even called, the raw data is gone by the time the ClientResponse callback happens.
Sstephenson's proposed fix / pull request (#259) would fix this in a pretty graceful way (I think). Or if there is another more elegant and efficient way to do this, I'd love to hear it.
I don't mind working on a patch if there is interest in this.