<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"><<a href="mailto:sdouglas@redhat.com" target="_blank">sdouglas@redhat.com</a>></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>
> From: "Adrian Mitev" <<a href="mailto:adrian.mitev@gmail.com">adrian.mitev@gmail.com</a>><br>
> To: <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
> Sent: Thursday, 23 April, 2015 2:12:31 AM<br>
> Subject: [undertow-dev] Rewrite response headers in ProxyHandler<br>
><br>
> Hi all! I have a ProxyHandler that proxies specific path. However I need to<br>
> overwrite the response headers returned by the remote path. Is it possible<br>
> to do that? I explored the PredicatesHandler but couldn't find a way with<br>
> it.<br>
><br>
</div></div>> _______________________________________________<br>
> undertow-dev mailing list<br>
> <a href="mailto:undertow-dev@lists.jboss.org">undertow-dev@lists.jboss.org</a><br>
> <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>