Skip to content

Commit

Permalink
fix: Encode fileServerFolder to fix cypress-io#25839
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzet-Z committed Mar 17, 2024
1 parent 85b85dd commit 787e65b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/driver/src/cypress/error_messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ export default {
We failed looking for this file at the path:
${obj.path}
${decodeURIComponent(obj.path)}
The internal Cypress web server responded with:
Expand Down
2 changes: 1 addition & 1 deletion packages/server/lib/file_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
const token = random.id(64)

const srv = http.createServer(httpUtils.lenientOptions, (req, res) => {
return onRequest(req, res, token, fileServerFolder)
return onRequest(req, res, token, encodeURIComponent(fileServerFolder))
})

allowDestroy(srv)
Expand Down

0 comments on commit 787e65b

Please sign in to comment.