1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
gitea/modules/httplib
wxiaoguang 3b10fd9b34
Only use Host header from reverse proxy (#32060)
X-Forwarded-Host has many problems: non-standard, not well-defined
(X-Forwarded-Port or not), conflicts with Host header, it already caused
problems like #31907. So do not use X-Forwarded-Host, just use Host
header directly.

Official document also only uses `Host` header and never mentioned
others.
2024-09-20 14:57:55 +00:00
..
request.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
serve_test.go Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
serve.go Skip gzip for some well-known compressed file types (#30796) 2024-05-02 02:27:25 +00:00
url_test.go Only use Host header from reverse proxy (#32060) 2024-09-20 14:57:55 +00:00
url.go Only use Host header from reverse proxy (#32060) 2024-09-20 14:57:55 +00:00