James Moger
2013-01-11 e4e68298c2f55c93dc2464e26a24b119a649e642
src/com/gitblit/wicket/pages/RawPage.java
@@ -109,7 +109,7 @@
                  switch (type) {
                  case 2:
                     // image blobs
                     byte[] image = JGitUtils.getByteContent(r, commit.getTree(), blobPath);
                     byte[] image = JGitUtils.getByteContent(r, commit.getTree(), blobPath, true);
                     response.setContentType("image/" + extension.toLowerCase());
                     response.setContentLength(image.length);
                     try {
@@ -120,7 +120,7 @@
                     break;
                  case 3:
                     // binary blobs (download)
                     byte[] binary = JGitUtils.getByteContent(r, commit.getTree(), blobPath);
                     byte[] binary = JGitUtils.getByteContent(r, commit.getTree(), blobPath, true);
                     response.setContentLength(binary.length);
                     response.setContentType("application/octet-stream");
                     response.setHeader("Content-Disposition", "attachment; filename=\"" + filename + "\"");