cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.98k stars 3.18k forks source link

Bad body encoding in `cy.request` #19115

Closed jean9696 closed 2 years ago

jean9696 commented 2 years ago

Current behavior

Body is encoding chars like '~' into hex chars (\x7e)

Desired behavior

Body sent should be { key: '~'} without encoding

Test code to reproduce

    cy.request({ method: 'POST', body: { key: '~'}, 'url': 'https://www.google.com'})

Cypress Version

9.1.0

Other

I thank you for what you do at Cypress ! I'm facing the issue described here since the v9.1, is it a bug or is it what you wanted? 😬

Thanks for your time !

Narretz commented 2 years ago

Looks like a duplicate of https://github.com/cypress-io/cypress/issues/19084

chrisbreiding commented 2 years ago

This seems to be a regression in 9.1.0.

Similar issues using different commands:

cypress-bot[bot] commented 2 years ago

The code for this is done in cypress-io/cypress#19239, but has yet to be released. We'll update this issue and reference the changelog when it's released.

cypress-bot[bot] commented 2 years ago

Released in 9.1.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v9.1.1, please open a new issue.