Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

BrowserKit does not allow to reset request header #163

Closed
vincentchalamon opened this issue Mar 25, 2016 · 0 comments
Closed

BrowserKit does not allow to reset request header #163

vincentchalamon opened this issue Mar 25, 2016 · 0 comments

Comments

@vincentchalamon
Copy link
Contributor

Using BrowserKit, when I execute all scenarios in my feature file, headers are not reset between scenarios.

For example, if I add a Given I add "CONTENT_TYPE" header equal to "application/json" step in my first scenario, this header will be kept in the second scenario.

This is a bug as it makes fail my second scenario because of that extra & unwanted header.

fabpot added a commit to FriendsOfPHP/Goutte that referenced this issue Nov 15, 2016
This PR was squashed before being merged into the 3.1-dev branch (closes #261).

Discussion
----------

Reset headers

Required by Behatch/contexts#164
See Behatch/contexts#163

Commits
-------

08724f1 Reset headers
sanpii pushed a commit that referenced this issue Feb 28, 2017
@sanpii sanpii closed this as completed in 4cc6cfc Jul 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant