aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_raw.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_repo_raw.go')
-rw-r--r--http_handle_repo_raw.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/http_handle_repo_raw.go b/http_handle_repo_raw.go
index 4394e18..75296d6 100644
--- a/http_handle_repo_raw.go
+++ b/http_handle_repo_raw.go
@@ -77,6 +77,7 @@ func httpHandleRepoRaw(writer http.ResponseWriter, request *http.Request, params
}
cost := time.Since(start).Nanoseconds()
commitPathFileRawCache.Set(cacheHandle, fileContent, cost)
+ writer.Header().Set("Content-Type", "application/octet-stream")
fmt.Fprint(writer, fileContent)
return
}