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

Different handling of responses with empty bodies than standalone #18746

Closed
dennisoelkers opened this issue Nov 2, 2021 · 3 comments
Closed
Labels
stale no activity on this issue for a long period

Comments

@dennisoelkers
Copy link

Current behavior

When retrieving a response from the backend with window.fetch which results in an empty body, it works when the code is run standalone (in a regular browser). When run from within cypress, it results in missing headers in the response.

Desired behavior

Responses should be consistent between standalone and from within cypress.

Test code to reproduce

I created a test repository that should show the differences: https://github.com/dennisoelkers/cypress-fetch-poc

Cypress Version

8.7.0

Other

No response

@dennisoelkers
Copy link
Author

From further research I am getting the impression that it is only the Content-Length header which is missing. Therefore, this issue might be a duplicate of #16469.

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label May 15, 2023
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

2 participants