Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13594

[GSS](7.1.z) UNDERTOW-1220 - Handling HTTP/1.0 protocol

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.1.4.CR1, 7.1.4.GA
    • 7.0.8.GA, 7.1.0.GA
    • Undertow
    • None

    Description

      EAP 6 and 7 have a difference in a handling of HTTP/1.0 requests. EAP 6 returns a protocol of HTTP/1.1 for HTTP/1.0 requests, but EAP 7 returns HTTP/1.0.

      - EAP 6
      $ curl --http1.0 --dump-header - http://localhost:8080/test/test.jsp
      HTTP/1.1 200 OK
      
      - EAP 7
      $ curl --http1.0 --dump-header - http://localhost:8080/test/test.jsp
      HTTP/1.0 200 OK
      

      According jbossweb and RFC, it seems better to use HTTP/1.1 for a response.

      http://docs.jboss.org/jbossweb/7.0.x/config/http.html
      RFC 2616 requires that HTTP servers always begin their responses with the highest HTTP version that they claim to support. Therefore, this Connector will always return HTTP/1.1 at the beginning of its responses.

      https://tools.ietf.org/html/rfc7230
      A server SHOULD send a response version equal to the highest version
      to which the server is conformant that has a major version less than
      or equal to the one received in the request.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-enagai Eiichi Nagai (Inactive)
              Daniel Cihak Daniel Cihak
              Daniel Cihak Daniel Cihak
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: