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

Prevent REST helper from mutating default headers #789

merged 1 commit into from Nov 21, 2017


None yet
2 participants

alexashley commented Nov 21, 2017

Closes #784. I linked this locally and ran it against my reproduction repo and everything looked good. The root cause was the assignment in the constructor causes the default headers to be mutated with every haveRequestHeaders.

The downside is that any tests that relied on this behavior are now broken (possibly including any Before hooks, but I haven't tested this).


This comment has been minimized.

Show comment
Hide comment

DavertMik Nov 21, 2017


Looks like tests are passing so the PR is ok to me!


DavertMik commented Nov 21, 2017

Looks like tests are passing so the PR is ok to me!

@DavertMik DavertMik merged commit b33928d into Codeception:master Nov 21, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
semaphoreci The build passed on Semaphore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment