Skip to content

Commit

Permalink
fix missing slash in the notification email sent by gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
HouzuoGuo committed Nov 26, 2017
1 parent 82654ac commit 0f9b725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/httpd/handler/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (lab *HandleGitlabBrowser) DownloadGitBlob(clientIP, projectID string, path
if lab.Recipients != nil && len(lab.Recipients) > 0 && lab.MailClient.IsConfigured() {
go func() {
subject := inet.OutgoingMailSubjectKeyword + "-gitlab-download-" + fileName
if err := lab.MailClient.Send(subject, fmt.Sprintf("File \"%s\" has been downloaded by %s", paths+fileName, clientIP), lab.Recipients...); err != nil {
if err := lab.MailClient.Send(subject, fmt.Sprintf("File \"%s/%s\" has been downloaded by %s", paths, fileName, clientIP), lab.Recipients...); err != nil {
lab.logger.Warningf("DownloadGitBlob", "", err, "failed to send notification for file \"%s\"", fileName)
}
}()
Expand Down

0 comments on commit 0f9b725

Please sign in to comment.