Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Test case: Network.Browser handles sending of cookies wrong #12

Merged
merged 4 commits into from Aug 22, 2011

Conversation

Projects
None yet
2 participants
Contributor

tomlokhorst commented Aug 15, 2011

Added failing test case to reproduce bug in the way Network.Browser handles cookies.

Scenario:

  • Browser sends vanilla request to server
  • Server sets one cookie hello=world
  • Browser sends a second request to server

Expected:
Server gets single cookie with hello=world

Actual:
Server gets 2 extra cookies, which are actually the attributes of the original cookie:
$Version=0;hello=world;$Domain=localhost:8080

This bug can be fixed by merging https://github.com/hesselink/HTTP/tree/feature/browser-cookie-format, then test case will succeed.

Note: code in this pull request depends on code in pull request 11.

@hsenag hsenag merged commit 86923f0 into haskell:master Aug 22, 2011

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