diff options
author | Benjamin Asbach <asbachb@benjamins-mbp.fritz.box> | 2014-01-04 16:29:12 +0100 |
---|---|---|
committer | Benjamin Asbach <asbachb@benjamins-mbp.fritz.box> | 2014-01-04 16:29:12 +0100 |
commit | 399b9b6769908f98e4dfb9658d3f9fae0ee03719 (patch) | |
tree | 2963342ddca1de47d254c7a3d5a262c8c0b85efa | |
parent | d1cb28385ea59475884afebd00179406c207efff (diff) | |
download | gitblit-399b9b6769908f98e4dfb9658d3f9fae0ee03719.tar.gz gitblit-399b9b6769908f98e4dfb9658d3f9fae0ee03719.zip |
Evaluate X_Forwarded_Context only when X-Forwarded-Context is not set
-rw-r--r-- | src/main/java/com/gitblit/utils/HttpUtils.java | 2 |
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)) {
|