<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">That worked. Thank you very much for the help!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 2:48 AM, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can use io.undertow.server.HttpServerExchange#addResponseCommitListener to modify the response before it is sent to the client. Install a handler before the proxy handler that adds one of these to the exchange.<br>
<br>
Stuart<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; From: &quot;Adrian Mitev&quot; &lt;<a href="mailto:adrian.mitev@gmail.com">adrian.mitev@gmail.com</a>&gt;<br>
&gt; To: <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; Sent: Thursday, 23 April, 2015 2:12:31 AM<br>
&gt; Subject: [undertow-dev] Rewrite response headers in ProxyHandler<br>
&gt;<br>
&gt; Hi all! I have a ProxyHandler that proxies specific path. However I need to<br>
&gt; overwrite the response headers returned by the remote path. Is it possible<br>
&gt; to do that? I explored the PredicatesHandler but couldn&#39;t find a way with<br>
&gt; it.<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; undertow-dev mailing list<br>
&gt; <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br>
</blockquote></div><br></div>