Skip to content

Commit

Permalink
remove encodeurl (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Jan 14, 2023
1 parent ae3d3d9 commit 5e28adc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
const createError = require('http-errors')
const debug = require('debug')('send')
const destroy = require('destroy')
const encodeUrl = require('encodeurl')
const escapeHtml = require('escape-html')
const etag = require('etag')
const fresh = require('fresh')
Expand Down Expand Up @@ -405,7 +404,7 @@ SendStream.prototype.redirect = function redirect (path) {
return
}

const loc = encodeUrl(collapseLeadingSlashes(this.path + '/'))
const loc = encodeURI(collapseLeadingSlashes(this.path + '/'))
const doc = createHtmlDocument('Redirecting', 'Redirecting to <a href="' + escapeHtml(loc) + '">' +
escapeHtml(loc) + '</a>')

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"dependencies": {
"debug": "^4.3.4",
"destroy": "1.2.0",
"encodeurl": "~1.0.2",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"fast-decode-uri-component": "^1.0.1",
Expand Down

0 comments on commit 5e28adc

Please sign in to comment.