SyntaxHighlighter

Sunday, July 17, 2016

nodejs expressjs http-proxy and the hanging POST

here's one i came across recently with using http-proxy and expressjs.  using the body-parser seems to mess with the way the object is sent to the backend (in this case, Spring Data REST).  to resolve this, on the proxy part, i had to remove all the body-parser listeners (thanks to this issue solution https://github.com/nodejitsu/node-http-proxy/issues/180#issuecomment-215773710)

a very quick and simple solution, although maybe not optimal, it works.

No comments:

Post a Comment