rsnext/test/integration/file-serving
Sukka 40767e5ce7
fix(#40066): preserve error status code from serveStatic (#40128)
The PR fixes #40066.

Next.js' `serveStatic` method is powered by the [send](https://github.com/pillarjs/send) module, which could throw errors under specific circumstances.
Currently, Next.js only preserves the 412 Error from send, hence issue #40066 (where 416 Error is not preserved).

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
2022-08-31 23:08:56 +00:00
..
pages Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
public fix(#39706): add avif support for node serve static (#39733) 2022-08-18 17:57:12 +00:00
static Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
test fix(#40066): preserve error status code from serveStatic (#40128) 2022-08-31 23:08:56 +00:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00