[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-2123.
-------------------------------------------
    Fix Version/s: 5.1-beta1
                   5.0.4
       Resolution: Fixed

[~kojilin] Fixed in 5.0.x and master.

Oleg

> 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
>            Priority: Minor
>             Fix For: 5.0.4, 5.1-beta1
>
>
> 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]

Reply via email to