Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Terminate reverse proxying requests when mocking #231

Closed Jvlythical closed 2 months ago

Jvlythical commented 2 months ago

Description

If a request under mock has the same hostname and port as the proxy, then an infinite request loop will occur when using mock policy found. When using mock policy found, if a request is not mocked, then it will be forwarded to the live service. However, when using the proxy as a reverse proxy, the mock will often have the same hostname and port as the live service. This causes an infinite request loop.