Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2123

H2AsyncClientBuilder doesn't add RequestInterceptorEntry.Postion.LAST with correct method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.0.3
    • 5.0.4, 5.1-beta1
    • HttpClient (async)
    • None

    Description

      Code at Line 656 adding LAST using addFirst. It should be addLast.

      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);
              }
          }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kojilin koji lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: