Small fix for #615

This commit is contained in:
Naoki Takezoe
2015-02-01 12:55:37 +09:00
parent 0d81a9a9b6
commit 6a758902ef
5 changed files with 8 additions and 8 deletions

View File

@@ -214,7 +214,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
if(raw){
// Download
defining(JGitUtil.getContentFromId(git, objectId, false).get){ bytes =>
outputUploadedRawData(FileUtil.getContentType(path, bytes), bytes)
RawData(FileUtil.getContentType(path, bytes), bytes)
}
} else {
repo.html.blob(id, repository, path.split("/").toList, JGitUtil.getContentInfo(git, path, objectId),