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

HttpHost is not set in HttpContext in CachingHttpClient

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.3, 4.2 Final
    • 4.2.1
    • None

    Description

      The HttpHost cames back as null, causing a NullPointerException when using CachingHttpClient.

      HttpHost actualHost = (HttpHost)requestContext.getAttribute(ExecutionContext.HTTP_TARGET_HOST);

      The host should be set in the HttpContext.

      Attachments

        Activity

          People

            jonm Jonathan Moore
            ipapa Ilirjan Papa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: