Create AppDirector for getting the application redirect URL

This commit is contained in:
Joel Speed
2021-06-19 11:23:32 +01:00
parent e7f304fc96
commit e1764d4221
5 changed files with 373 additions and 0 deletions
+5
View File
@@ -52,3 +52,8 @@ func IsProxied(req *http.Request) bool {
}
return scope.ReverseProxy
}
func IsForwardedRequest(req *http.Request) bool {
return IsProxied(req) &&
req.Host != GetRequestHost(req)
}