aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_index.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_repo_index.go')
-rw-r--r--http_handle_repo_index.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go
index b0a5899..8f0a62b 100644
--- a/http_handle_repo_index.go
+++ b/http_handle_repo_index.go
@@ -91,10 +91,10 @@ func httpHandleRepoIndex(w http.ResponseWriter, req *http.Request, params map[st
commits = append(commits, commitDisplay{
Hash: hex.EncodeToString(id),
- Author: string(authorName),
- Email: string(authorEmail),
- Date: string(authorDate),
- Message: string(title),
+ Author: bytesToString(authorName),
+ Email: bytesToString(authorEmail),
+ Date: bytesToString(authorDate),
+ Message: bytesToString(title),
})
}