robtimus opened a new pull request #272: URL: https://github.com/apache/httpcomponents-client/pull/272
When `addExecInterceptorLast` is called on an `HttpClientBuilder`, `HttpAsyncClientBuilder` or `H2AsyncClientBuilder`, the given executor is added as last element of the executor chain. That may seem correct, but it causes them to be ignored. The reason is the `*MainClientExec` that's initially the last element. In all three cases, this does not delegate to the chain. As a result, anything added with `addExecInterceptorLast` is currently completely ignored. This change adds the interceptor as last in the chain of actual interceptors, just before the `*MainClientExec` which I don't consider an interceptor. It's the same as the workaround I've been applying right now which works just fine. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
