Skip to content

Commit 772fd6e

Browse files
committed
fix: detect content type when returning storage files via URLs
1 parent 6b2a6d1 commit 772fd6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cloud/storage/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func NewLocalStorageService(opts StorageOptions) (*LocalStorageService, error) {
552552
return
553553
}
554554

555-
w.Header().Set("Content-Type", "application/octet-stream")
555+
w.Header().Set("Content-Type", http.DetectContentType(resp.Body))
556556
w.Header().Set("Content-Disposition", "attachment; filename="+filepath.Base(req.Key))
557557
w.WriteHeader(http.StatusOK)
558558

0 commit comments

Comments
 (0)