mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
686e3ef5a6
ServeFileByID and DownloadFile duplicated the lookup failure mapping and each used an unchecked *strconv.NumError assertion that cannot match a wrapped error. One helper now classifies 404 vs 400 via errors.As; each endpoint keeps its own fallback for unclassified failures. ErrInvalidUploadID became unused once both sites report ErrInvalidFileID for a malformed ID.