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

Prevent REST helper from mutating default headers #789

Merged
merged 1 commit into from
Nov 21, 2017
Merged

Prevent REST helper from mutating default headers #789

merged 1 commit into from
Nov 21, 2017

Conversation

alexashley
Copy link
Contributor

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).

@DavertMik
Copy link
Contributor

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

@DavertMik DavertMik merged commit b33928d into codeceptjs:master Nov 21, 2017
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