Skip to content

Commit

Permalink
fix: remove unpipe package and use native unpipe method
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip9587 committed Oct 16, 2024
1 parent 42a0a2a commit 5f05d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var escapeHtml = require('escape-html')
var onFinished = require('on-finished')
var parseUrl = require('parseurl')
var statuses = require('statuses')
var unpipe = require('unpipe')

/**
* Module variables.
Expand Down Expand Up @@ -313,7 +312,7 @@ function send (req, res, status, headers, message) {
}

// unpipe everything from the request
unpipe(req)
req.unpipe()

// flush the request
onFinished(req, write)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"escape-html": "~1.0.3",
"on-finished": "2.4.1",
"parseurl": "~1.3.3",
"statuses": "2.0.1",
"unpipe": "~1.0.0"
"statuses": "2.0.1"
},
"devDependencies": {
"eslint": "7.32.0",
Expand Down

0 comments on commit 5f05d5f

Please sign in to comment.