Due to some great contributions I'm happy to announce a new release of http-proxy
containing numerous bug fixes, feature additions and documentation improvements. Thanks to all who contributed for their patience and willingness to contribute despite perceived stagnation in activity in the project. I welcome all contributions and those who are interested in getting more involved with the project. Below I will highlight the changes that landed in the latest version but you can find the full diff of the changes in #1251
- Add option to rewrite path of set-cookie headers. @swillis12
- Add option for overriding http METHOD when proxying request @AydinChavez
- Feature: selfHandleResponse for taking responsibility in returning your own response when listening on the
proxyRes
event. @cpd0101 @guoxiangyang - Add
followRedirects
option @n30n0v - Document
timeout
option @jlaamanen - Fix documentation typos @carpsareokiguess
- Document
buffer
option @jonhunter1977 - Include websocket non-upgrade response instead of just closing the socket. Allows auth schemes to be possible with websocket proxying. @Tigge
- Stop using the
writeHead
method explicitly and let node handle it internally to prevent thrown errors @jakefurler - Be more defensive in handling of detecting response state when proxying @thiagobustamante