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

HttpServletRequestImpl#getRequestUrl() returns an invalid URL in case of empty Host header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.28.Final
    • 2.0.27.Final
    • Core
    • None

      If Host header is empty, HttpServerExchange#getHostAndPort returns nothing instead of taking hostname from the destination address of the HTTP request.
      It will be in sync with HttpServerExchange#getHost if it takes a look at the destination address in that case.
      Furthermore, it would allow our RestEASY to create the correct UriInfo even if Host header is empty, see RESTEASY-2300.

            istudens@redhat.com Ivo Studensky
            istudens@redhat.com Ivo Studensky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: