That worked. Thank you very much for the help!

On Thu, Apr 23, 2015 at 2:48 AM, Stuart Douglas <sdouglas@redhat.com> wrote:
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.

Stuart

----- Original Message -----
> From: "Adrian Mitev" <adrian.mitev@gmail.com>
> To: undertow-dev@lists.jboss.org
> Sent: Thursday, 23 April, 2015 2:12:31 AM
> Subject: [undertow-dev] Rewrite response headers in ProxyHandler
>
> Hi all! I have a ProxyHandler that proxies specific path. However I need to
> overwrite the response headers returned by the remote path. Is it possible
> to do that? I explored the PredicatesHandler but couldn't find a way with
> it.
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev