summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-10-26 10:20:43 -0400
committerJames Moger <james.moger@gitblit.com>2014-10-26 10:20:43 -0400
commit3faf6f6469759538590aa7f1012c543f95583c56 (patch)
treeab730016d0bbf881dcd03914141116f9111429bf /src/main
parent0c083063b5dbf949533a986262368b796c867910 (diff)
parent9ceddb66153d78fbbc13fc6b1ab24714080ed17a (diff)
downloadgitblit-3faf6f6469759538590aa7f1012c543f95583c56.tar.gz
gitblit-3faf6f6469759538590aa7f1012c543f95583c56.zip
Merge branch 'ticket/211' into develop
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/servlet/RawServlet.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/servlet/RawServlet.java b/src/main/java/com/gitblit/servlet/RawServlet.java
index 8f30bfbe..682e555a 100644
--- a/src/main/java/com/gitblit/servlet/RawServlet.java
+++ b/src/main/java/com/gitblit/servlet/RawServlet.java
@@ -108,9 +108,8 @@ public class RawServlet extends HttpServlet {
branch = Repository.shortenRefName(branch).replace('/', fsc);
}
- String encodedPath = path == null ? "" : path.replace(' ', '-');
- encodedPath = encodedPath.replace('/', fsc);
- return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + (path == null ? "" : encodedPath)));
+ String encodedPath = path == null ? "" : path.replace('/', fsc);
+ return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + encodedPath));
}
protected String getBranch(String repository, HttpServletRequest request) {