mkopylec / charon-spring-boot-starter

Reverse proxy implementation in form of a Spring Boot starter.
Apache License 2.0
240 stars 54 forks source link

Include port in X-Forwarded-Host header if not default #124

Open jwgmeligmeyling opened 3 years ago

jwgmeligmeyling commented 3 years ago

Fixes #122.

After looking into it a bit better the resources are quite contradicting each other on whether the port should be in the header or not.

Perhaps we could at least make the behaviour configurable to support both flavors?

codecov-commenter commented 3 years ago

Codecov Report

Merging #124 (fae1a4b) into master (f6311c9) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #124   +/-   ##
=========================================
  Coverage     90.80%   90.81%           
  Complexity      542      542           
=========================================
  Files           167      167           
  Lines          1849     1851    +2     
  Branches         54       55    +1     
=========================================
+ Hits           1679     1681    +2     
  Misses          148      148           
  Partials         22       22           
Impacted Files Coverage Δ
...ors/rewrite/CommonRequestProxyHeadersRewriter.java 95.83% <100.00%> (+0.37%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f6311c9...fae1a4b. Read the comment docs.