Split the generic file-download writer (ServeContent for seekable readers, manual 304 + io.Copy otherwise) out of WriteAttachmentDownload so other blob endpoints can reuse it. The attachment writer keeps its preview branch and cache override and delegates the rest. |
||
|---|---|---|
| .. | ||
| file.go | ||
| project_background.go | ||
| task_attachment.go | ||
| task_attachment_test.go | ||