Skip to content

Location scheme should not always correspond to X-Forwarded-Proto #542

@modernptz

Description

@modernptz

Since 20.5.0

Expected behavior

It should be possible to make redirect from http to https and vice versa.

Actual behavior

Currently all Location headers which contains absolute uri are being rewritten by HttpResponseFilter with x-forwarded-proto value as uri scheme.

request.headerMap.get("x-forwarded-proto") match {

if (fullyQualify) s"${RequestUtils.getScheme(request)}:"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions