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

Fix http headers#212

Closed
themizzi wants to merge 3 commits intoBehatch:masterfrom
themizzi:fix-http-headers
Closed

Fix http headers#212
themizzi wants to merge 3 commits intoBehatch:masterfrom
themizzi:fix-http-headers

Conversation

@themizzi
Copy link
Copy Markdown

Two things: 1) it stores the client so headers are lost between calls to setHttpHeaders. 2) setHttpHeaders handles Content headers appropriately.

@elkangaroo
Copy link
Copy Markdown

We just stumbled upon this header bug, trying to set Content-Type header with symfony2 session (Behat\Symfony2Extension) will set HTTP_CONTENT_TYPE instead of CONTENT_TYPE.

This PR needs some clean-up, though, as the changes from commit 65d4a10 are no longer needed (already implemented with #209).

@themizzi can you please update this PR or create a new PR with only commit 7742b0a (Content-Header Fix)?

@themizzi
Copy link
Copy Markdown
Author

@elkangaroo I have reverted the unnecessary commit.

@elkangaroo
Copy link
Copy Markdown

Awesome, thx @themizzi 👍

@razbakov
Copy link
Copy Markdown
Contributor

See #218. It also contains tests and some improvements.

@silasjoisten
Copy link
Copy Markdown

ping @OskarStark

@OskarStark
Copy link
Copy Markdown
Contributor

See #218. It also contains tests and some improvements.

#218 should be merged instead of this, as it contains tests.
@razbakov can you apply the comments/feedback in your PR to get it merged?

@sanpii
Copy link
Copy Markdown
Member

sanpii commented Jan 18, 2018

For me, a good PR could be this one with headers.feature.

#218 does two other things could be discussed separetly.

@OskarStark
Copy link
Copy Markdown
Contributor

sounds good, unless you don't get any feedback I could submit a new one with this fix and the feature

@sanpii
Copy link
Copy Markdown
Member

sanpii commented Jan 19, 2018

Now #218 is ok for me.

@OskarStark
Copy link
Copy Markdown
Contributor

@sanpii can you please merge and release this? all checks are green now

@sanpii
Copy link
Copy Markdown
Member

sanpii commented Jan 25, 2018

#218 merged.

@sanpii sanpii closed this Jan 25, 2018
@OskarStark
Copy link
Copy Markdown
Contributor

Yay, thank you @sanpii 🎉
Can you create a release? Thank you

@sanpii
Copy link
Copy Markdown
Member

sanpii commented Jan 25, 2018

@OskarStark I would like fix travis build before.

@OskarStark
Copy link
Copy Markdown
Contributor

any news here?

Is this PR (which is not release yet) maybe related to the travis problem?
Behat/MinkExtension#311

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants