538095c936
This PR adds a warning when api responses exceed 5mb since this will end up failing once deployed. In a future version this scenario will throw an error. ## Bug - [x] Integration tests added ## Documentation / Examples - [x] Make sure the linting passes
6 lines
115 B
JavaScript
6 lines
115 B
JavaScript
export default (req, res) => {
|
|
for (let i = 0; i <= 5 * 1024 * 1024; i++) {
|
|
res.write('.')
|
|
}
|
|
res.end()
|
|
}
|