Skip to content

Commit

Permalink
fix: fix URL decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Thanh An committed Apr 24, 2024
1 parent 4087de1 commit ec791cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/server/createRecordingServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const createRecordingServer = async (config) => {
res.status(response.status || 500);
res.json(response.data);

const filename = getRecordingFileName(method, url);
const escapedUrl = url.replaceAll('%5B%5D', '[]');
const filename = getRecordingFileName(method, escapedUrl);
utils.saveRecording(_directory, filename, req, response);
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-playback-server",
"version": "2.0.2",
"version": "2.0.3",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit ec791cd

Please sign in to comment.