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

RestContext headers doesn't work #110

Closed
jskarpe opened this issue Jan 4, 2015 · 1 comment
Closed

RestContext headers doesn't work #110

jskarpe opened this issue Jan 4, 2015 · 1 comment

Comments

@jskarpe
Copy link
Contributor

jskarpe commented Jan 4, 2015

Behat\Mink\Driver\BrowserKitDriver.php is only passing headers to the client in the visit() method on line 158. When RestContext is bypassing the visit() method (in order to set POST method for instance), then the headers are never passed to the client, thus submitting POST with default headers.

Example: iSendARequestToWithBody

Given I add "Content-Type" header equal to "application/json"
When I send a "POST" request to "api.json" with body:

Actual sent header in this scenario:

Content-Type: application/x-www-form-urlencoded
@sanpii
Copy link
Member

sanpii commented Apr 21, 2015

See #119 (comment)

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

2 participants