jshawl / httpz

Inspect HTTP requests
https://httpz.app
Other
20 stars 4 forks source link

support requests with content type application/json #6

Closed forrert closed 8 years ago

forrert commented 8 years ago

This is a great tool and really useful to me! Thanks for that.

A webhook I was using sent me a POST request with content type application/json, but the proxy to localhost function of this tool forwards requests with application/x-www-form-urlencoded. This PR reads the content type of the incoming request and forwards it to localhost in the corresponding format if it is JSON data.

Hope this helps!