Skip to content

Commit

Permalink
Fix typo in res.download
Browse files Browse the repository at this point in the history
closes #1404
  • Loading branch information
cfdeinza authored and dougwilson committed Nov 27, 2023
1 parent e88b052 commit beb41fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/api/en/4x/res-download.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h3 id='res.download'>res.download(path [, filename] [, options] [, fn])</h3>

Transfers the file at `path` as an "attachment". Typically, browsers will prompt the user for download.
By default, the `Content-Disposition` header "filename=" parameter is derrived from the `path` argument, but can be overridden with the `filename` parameter.
By default, the `Content-Disposition` header "filename=" parameter is derived from the `path` argument, but can be overridden with the `filename` parameter.
If `path` is relative, then it will be based on the current working directory of the process or
the `root` option, if provided.

Expand Down
2 changes: 1 addition & 1 deletion _includes/api/en/5x/res-download.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The optional `options` argument is supported by Express v4.16.0 onwards.
</div>

Transfers the file at `path` as an "attachment". Typically, browsers will prompt the user for download.
By default, the `Content-Disposition` header "filename=" parameter is derrived from the `path` argument, but can be overridden with the `filename` parameter.
By default, the `Content-Disposition` header "filename=" parameter is derived from the `path` argument, but can be overridden with the `filename` parameter.
If `path` is relative, then it will be based on the current working directory of the process.

The following table provides details on the `options` parameter.
Expand Down

0 comments on commit beb41fd

Please sign in to comment.