drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Add the 'hideHeaders' option #91

Closed matthieubulte closed 9 years ago

matthieubulte commented 9 years ago

Hi,

First of all , thanks for the great work done on grunt-connect-proxy, it's very a helpful package!

This PR introduces the hideHeaders option that will simply remove the specified headers from the server's response.

It's simply done by listening to the proxyRes event of the used proxy, and deleting the headers from the pry server's response headers.

It has simple unit testing and some documentation, but if you have any remark I'll be glad to modify the PR.

Thanks!