HTTPCLIENT-2123: H2AsyncClientBuilder incorrectly adds last request interceptors to the head of the interceptor list

This commit is contained in:
Oleg Kalnichevski 2020-10-21 19:39:05 +02:00
parent a2df6f1e32
commit e73b33c18b
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ public class H2AsyncClientBuilder {
if (requestInterceptors != null) {
for (final RequestInterceptorEntry entry: requestInterceptors) {
if (entry.postion == RequestInterceptorEntry.Postion.LAST) {
b.addFirst(entry.interceptor);
b.addLast(entry.interceptor);
}
}
}