You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
When running requests through replay, replay will correctly escape a request like https://www.example.com/test?query={"title":"Node replay is great"} to https://www.example.com/test?query=%7B%22title%22%3A%22Node%20replay%20is%20great%22%7D. The node app running locally doesn't encode the URLs. This gave a difference between behaviour during test driven development with replay and behaviour of the node app itself.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We have hit a minor gotcha when using node-replay.
The following line URL encodes the URL and request parameters when using record mode in replay: https://github.com/assaf/node-replay/blob/master/src/proxy.js#L44
When running requests through replay, replay will correctly escape a request like
https://www.example.com/test?query={"title":"Node replay is great"}
tohttps://www.example.com/test?query=%7B%22title%22%3A%22Node%20replay%20is%20great%22%7D
. The node app running locally doesn't encode the URLs. This gave a difference between behaviour during test driven development with replay and behaviour of the node app itself.The text was updated successfully, but these errors were encountered: