Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-732

Is it onpurpose that content-length header is not set in http/2 mode?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 5.1.4
    • None
    • HttpCore
    • None

    Description

      see: httpcomponents-core/H2RequestContent.java at master · apache/httpcomponents-core (github.com)

       

      there 3 things are set, but not the content length.

      (if protocol would be < 2 then super.process() would be called which would set it)

       

      i know http/2 mode setting the content length is optional.  But some servers seems to really want it. And i think as long as the content-length is known upfront it shouldn't harm to set it right?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jcompanger@gmail.com Johan Compagner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: