diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-26 10:20:43 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-26 10:20:43 -0400 |
commit | 3faf6f6469759538590aa7f1012c543f95583c56 (patch) | |
tree | ab730016d0bbf881dcd03914141116f9111429bf /src/main | |
parent | 0c083063b5dbf949533a986262368b796c867910 (diff) | |
parent | 9ceddb66153d78fbbc13fc6b1ab24714080ed17a (diff) | |
download | gitblit-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.java | 5 |
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) { |