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)}:" |
Since 20.5.0
Expected behavior
It should be possible to make redirect from http to https and vice versa.
Actual behavior
Currently all
Locationheaders which contains absolute uri are being rewritten by HttpResponseFilter withx-forwarded-protovalue as uri scheme.finatra/http/src/main/scala/com/twitter/finatra/http/filters/HttpResponseFilter.scala
Line 94 in b6453a4
finatra/http/src/main/scala/com/twitter/finatra/http/filters/HttpResponseFilter.scala
Line 114 in b6453a4