Skip to content

Commit

Permalink
fix: decodeURI before searching query (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterliu1003 authored May 29, 2020
1 parent 7fff415 commit 66781a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const generateETag = require('etag')
const fresh = require('fresh')

module.exports = ({ ws, database }) => async (req, res) => {
const url = nodeReq.url(req)
const url = decodeURI(nodeReq.url(req))

// Handle WS
/* istanbul ignore if */
Expand Down

0 comments on commit 66781a8

Please sign in to comment.