### Motivation

Fixes #2660 

There is a problem with the Jetty proxy servlet configuration that it makes it 
to not transparently follow HTTP redirects from brokers. This results in 
clients being redirected to a broker hostname that they cannot reach.

### Modifications

Completely override the `createHttpClient()` from `AbstractProxyServlet` in 
order to ensure that `RedirectProtocolHandler` is always in the list of 
handlers for the client.

### Result

Proxy will internally handle 307 redirection and will send a 200 to client.


[ Full content available at: https://github.com/apache/pulsar/pull/2670 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to