Context: SPR-12771

When the X-Forwarded-Port is set, its value should always be taken into account. When looking at the org.springframework.web.util.UriComponentsBuilder#fromHttpRequest code, we see in the end that the port must always be set into the builder. If not, we have cases where the port remains set to 80.

Comment From: pivotal-issuemaster

@dcoraboeuf Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: dcoraboeuf

Since SPR-12771 is long closed, this PR can be closed.

Comment From: snicoll

Thanks @dcoraboeuf!

Comment From: pivotal-cla

@dcoraboeuf Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.