Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8896

http client sends some strange HTTP/1.1 and HTTP/2 mix headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.0.2
    • 4.0.3
    • Transports
    • None
    • Unknown

    Description

      From CXF 4.0.1, without the force http version with 

       

      ((BindingProvider)port).getRequestContext().put("org.apache.cxf.transport.http.forceVersion", "1.1"), 

      The http client sends request with strange headers : 

      POST /jaxws-securityDomain2/authz HTTP/1.1
      Connection: Upgrade, HTTP2-Settings
      Content-Length: 207
      Host: 127.0.0.1:23088
      HTTP2-Settings: AAEAAEAAAAIAAAABAAMAAABkAAQBAAAAAAUAAEAA
      Upgrade: h2c
      Accept: */*
      Content-Type: text/xml; charset=UTF-8
      SOAPAction: ""
      User-Agent: Apache-CXF/4.0.1 

      This works in CXF 4.0.0 and this commit seems introduce issue: 

      https://github.com/apache/cxf/commit/9b36a4bc996615e0ed02795c74167586a2bb11df 

      If force the HTTP/1.1 with property : org.apache.cxf.transport.http.forceVersion , it works. But this is a backward compatible issue and we should still support HTTP/1.1 by default. 

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: