mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #20552 from overleaf/ac-update-node-fetch-2
Reapply "Upgrade node-fetch to 2.7.0", Fix fetch-utils tests GitOrigin-RevId: b42a2d2c50ce73f474e39755845e4df065f30b48
This commit is contained in:
@@ -12,6 +12,7 @@ class TestServer {
|
||||
|
||||
this.app.use(bodyParser.json())
|
||||
this.app.use((req, res, next) => {
|
||||
this.events.emit('request-received')
|
||||
this.lastReq = req
|
||||
next()
|
||||
})
|
||||
@@ -40,7 +41,6 @@ class TestServer {
|
||||
})
|
||||
|
||||
this.app.post('/sink', (req, res) => {
|
||||
this.events.emit('request-received')
|
||||
req.on('data', () => {})
|
||||
req.on('end', () => {
|
||||
res.status(204).end()
|
||||
|
||||
Reference in New Issue
Block a user