maint: comment source code

This commit is contained in:
vxclutch
2026-05-28 07:55:10 -04:00
parent b436415980
commit 363c3b6c96
6 changed files with 5 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ func (h FileData) APIHandler(w http.ResponseWriter, r *http.Request) {
return
}
// Send the file over as a stream of bytes
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%s", h.FileName))
w.Header().Set("Content-Type", "application/octet-stream")
w.Header().Set("Content-Length", strconv.Itoa(len(h.Contents)))