title: Rewrite response headers with node-http-proxy
body: <p>I'm using <a href="https://github.com/nodejitsu/node-http-proxy/" rel="noreferrer">node-http-proxy</a> and want to watch for a particular response
  header and rewrite it if necessary. Anyone here have suggestions on to
  do this?</p>
  
  <p>My proxy server sits in front of a couple different node servers as
  well as a java webapp.  The java app is setting a cookie, but the
  cookie has a path that is relative the the webapp's context. I need
  the cookie to be secure and have a path to root without modifying the Java
  application.</p>
  
  <p>In other words, the following header is returned:</p>
  
  <pre><code>set-cookie: MYSPECIALCOOKIE=679b6291-d1cc-47be; Path=/app; HttpOnly
  </code></pre>
  
  <p>And I'd like to rewrite the Path value to:</p>
  
  <pre><code>set-cookie: MYSPECIALCOOKIE=679b6291-d1cc-47be; Path=/; HttpOnly; Secure
  </code></pre>
  
  <p>I'm not clear how I would do this using node-http-proxy. Suggestions?
  Is there middleware to help with this?</p>