Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1220

Handling HTTP/1.0 protocol

XMLWordPrintable

      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.

            sdouglas1@redhat.com Stuart Douglas
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: