From d0dc7eec8650ec1060d737cfc8beab9622fc3f93 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 16 Apr 2026 10:17:43 +0800 Subject: [PATCH] docs: fix res.download typos --- _includes/api/en/3x/res-download.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/api/en/3x/res-download.md b/_includes/api/en/3x/res-download.md index 43d48f769d..4cfb5ddf84 100644 --- a/_includes/api/en/3x/res-download.md +++ b/_includes/api/en/3x/res-download.md @@ -3,10 +3,10 @@ Transfer the file at `path` as an "attachment", typically browsers will prompt the user for download. The Content-Disposition "filename=" parameter, aka the one -that will appear in the brower dialog is set to `path` +that will appear in the browser dialog is set to `path` by default, however you may provide an override `filename`. -When an error has ocurred or transfer is complete the optional +When an error has occurred or transfer is complete the optional callback `fn` is invoked. This method uses res.sendfile() to transfer the file.