Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
var createError = require('http-errors')
var getBody = require('raw-body')
var iconv = require('iconv-lite')
var onFinished = require('on-finished')
var zlib = require('node:zlib')
const { finished } = require('node:stream')

/**
* Module exports.
Expand Down Expand Up @@ -201,10 +201,10 @@
*/

function dump (req, callback) {
if (onFinished.isFinished(req)) {

Check failure on line 204 in lib/read.js

View workflow job for this annotation

GitHub Actions / Lint

'onFinished' is not defined
callback(null)
} else {
onFinished(req, callback)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened an issue in Node to fix the tests that are failing due to this change.

nodejs/node#57844

finished(req, callback)
req.resume()
}
}
Loading