Commit 90d98776 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Forgot to use blob prefix constant

parent 825e2afb
......@@ -70,7 +70,7 @@ func (s *sendFileResponseWriter) WriteHeader(status int) {
sendFileFromDisk(s.rw, s.req, file)
return
}
if sendData := s.Header().Get("Gitlab-Workhorse-Send-Data"); strings.HasPrefix(sendData, "git-blob:") {
if sendData := s.Header().Get("Gitlab-Workhorse-Send-Data"); strings.HasPrefix(sendData, git.SendBlobPrefix) {
s.hijacked = true
git.SendBlob(s.rw, s.req, sendData)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment