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

Redirect Location header ignores X-Forwarded-Prefix

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • None
    • Core
    • None

      For request which is redirected to index.html:

      $ curl -I -X GET  --header "X-Forwarded-Prefix: /test-service" --header "X-Forwarded-Port: 8625" --header "X-Forwarded-Proto: https"  --header "X-Forwarded-Host: server-new" "http://localhost:8624/docs"
      

      Current result is:

      HTTP/1.1 302 Found
      Location: https://server-new:8625/docs/index.html
      

      but should be:

      HTTP/1.1 302 Found
      Location: https://server-new:8625/test-service/docs/index.html
      

            sdouglas1@redhat.com Stuart Douglas
            tjuchniewicz_jira Tomasz Juchniewicz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: