Skip to content

Commit

Permalink
Merge pull request #34 from lethanhan97/fix/url-encoding
Browse files Browse the repository at this point in the history
fix: fix URL decoding
  • Loading branch information
anany-stashaway authored Apr 24, 2024
2 parents 4087de1 + ec791cd commit 06fa811
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 06fa811

Please sign in to comment.