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

Missing Content-Length header makes cached entry invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.1, 4.1.2, 4.2 Alpha1
    • 4.1.2
    • HttpCache

    Description

      A cached entry whose original response didn't carry a Content-Length header, should not be rejected for considered invalid because the length of its cached content is different from the non-existing Content-Length header value. The attached patch only verifies the lengths if the header was originally present.

      Attachments

        1. MissingContentLength.patch
          3 kB
          Bart Robeyns
        2. MissingContentLength_with_licence.patch
          3 kB
          Bart Robeyns

        Activity

          People

            jonm Jonathan Moore
            bartrobeyns Bart Robeyns
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: