koji lin created HTTPCLIENT-2123:
------------------------------------
Summary: H2AsyncClientBuilder doesn't add
RequestInterceptorEntry.Postion.LAST with correct method
Key: HTTPCLIENT-2123
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2123
Project: HttpComponents HttpClient
Issue Type: Bug
Components: HttpClient (async)
Affects Versions: 5.0.3
Reporter: koji lin
Code at Line 656 adding LAST using addFirst. It should be addLast.
{code:java}
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
b.addFirst(entry.interceptor);
}
}
}
if (responseInterceptors != null) {
for (final ResponseInterceptorEntry entry: responseInterceptors) {
if (entry.postion == ResponseInterceptorEntry.Postion.LAST) {
b.addLast(entry.interceptor);
}
}
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]