Skip to content

Commit

Permalink
Fix typo in res.download options
Browse files Browse the repository at this point in the history
closes #1417
  • Loading branch information
domdomegg authored and dougwilson committed Nov 27, 2023
1 parent b33766a commit 391124f
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
Expand Up @@ -27,7 +27,7 @@ The optional `options` argument is supported by Express v4.16.0 onwards.
| `maxAge` | Sets the max-age property of the `Cache-Control` header in milliseconds or a string in [ms format](https://www.npmjs.org/package/ms)| 0 | 4.16+ |
| `root` | Root directory for relative filenames.| | 4.18+ |
| `lastModified` | Sets the `Last-Modified` header to the last modified date of the file on the OS. Set `false` to disable it.| Enabled | 4.16+ |
| `headers` | Object containing HTTP headers to serve with the file. The header `Content-Disposition` will be overriden by the `filename` argument.| | 4.16+ |
| `headers` | Object containing HTTP headers to serve with the file. The header `Content-Disposition` will be overridden by the `filename` argument.| | 4.16+ |
| `dotfiles` | Option for serving dotfiles. Possible values are "allow", "deny", "ignore".| "ignore" | 4.16+ |
| `acceptRanges` | Enable or disable accepting ranged requests. | `true` | 4.16+ |
| `cacheControl` | Enable or disable setting `Cache-Control` response header.| `true` | 4.16+ |
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 @@ -20,7 +20,7 @@ The optional `options` argument is supported by Express v4.16.0 onwards.
|-----------------|-------------------------------------------------|-------------|--------------|
| `maxAge` | Sets the max-age property of the `Cache-Control` header in milliseconds or a string in [ms format](https://www.npmjs.org/package/ms)| 0 | 4.16+ |
| `lastModified` | Sets the `Last-Modified` header to the last modified date of the file on the OS. Set `false` to disable it.| Enabled | 4.16+ |
| `headers` | Object containing HTTP headers to serve with the file. The header `Content-Disposition` will be overriden by the `filename` argument.| | 4.16+ |
| `headers` | Object containing HTTP headers to serve with the file. The header `Content-Disposition` will be overridden by the `filename` argument.| | 4.16+ |
| `dotfiles` | Option for serving dotfiles. Possible values are "allow", "deny", "ignore".| "ignore" | 4.16+ |
| `acceptRanges` | Enable or disable accepting ranged requests. | `true` | 4.16+ |
| `cacheControl` | Enable or disable setting `Cache-Control` response header.| `true` | 4.16+ |
Expand Down

0 comments on commit 391124f

Please sign in to comment.