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

Mismatching Host and Port being returned from HttpServletRequestImpl methods when Proxy present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0.Beta31
    • 1.0.0.Beta17
    • Core, Servlet
    • None

      HttpRequest.getServerName() and HttpRequest.getServerPort() return mismatching information when a Proxy is present.

      HttpRequest.getServerName() will return the Proxy host, as the HttpServerExchange checks the request headers before the destination address.

      HttpRequest.getServerPort() will return the server port, as it gets the port from the destination address at all times.

              kfinniga@redhat.com Ken Finnigan (Inactive)
              kfinniga@redhat.com Ken Finnigan (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: