summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorBenjamin Asbach <asbachb@benjamins-mbp.fritz.box>2014-01-04 16:29:12 +0100
committerBenjamin Asbach <asbachb@benjamins-mbp.fritz.box>2014-01-04 16:29:12 +0100
commit399b9b6769908f98e4dfb9658d3f9fae0ee03719 (patch)
tree2963342ddca1de47d254c7a3d5a262c8c0b85efa /src/main
parentd1cb28385ea59475884afebd00179406c207efff (diff)
downloadgitblit-399b9b6769908f98e4dfb9658d3f9fae0ee03719.tar.gz
gitblit-399b9b6769908f98e4dfb9658d3f9fae0ee03719.zip
Evaluate X_Forwarded_Context only when X-Forwarded-Context is not set
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/utils/HttpUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/utils/HttpUtils.java b/src/main/java/com/gitblit/utils/HttpUtils.java
index ffea81cd..818ed492 100644
--- a/src/main/java/com/gitblit/utils/HttpUtils.java
+++ b/src/main/java/com/gitblit/utils/HttpUtils.java
@@ -80,7 +80,7 @@ public class HttpUtils {
String context = request.getContextPath();
String forwardedContext = request.getHeader("X-Forwarded-Context");
- if (forwardedContext != null) {
+ if (StringUtils.isEmpty(forwardedContext)) {
forwardedContext = request.getHeader("X_Forwarded_Context");
}
if (!StringUtils.isEmpty(forwardedContext)) {