Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware API fix #711

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Middleware API fix #711

merged 1 commit into from
Oct 16, 2024

Conversation

Que3216
Copy link
Contributor

@Que3216 Que3216 commented Oct 16, 2024

Just realised allowing network requests to be dropped within transformNetworkResponse would make this behaviour hard to implement:

Returning null will cause the request and the corresponding response to be dropped from the payload.
At replay time if there is no exact match for a request that is transformed to null then the request
will be failed with 'net::ERR_FAILED'/'Failed to fetch' rather than automatically trying to find a
'closest match' in the recorded session.

This is an API break, but this API is not being used yet, so safe to change.

@Que3216 Que3216 merged commit 2c94a21 into main Oct 16, 2024
3 checks passed
@Que3216 Que3216 deleted the qsh/middleware-api-fix branch October 16, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants