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

Only set cookies in debugPrintable when relevant #516

Closed
wants to merge 1 commit into from

Conversation

alexpls
Copy link
Contributor

@alexpls alexpls commented Jun 8, 2015

If HTTPShouldSetCookies is set to false in the session's config then any cookies set will not be sent as part of the request.

Previously the cURL command output provided by debugPrintln() would include cookies whether or not HTTPShouldSetCookies was true or false. This commit will make it so debugPrintln() only prints cookies in the cURL output if they'll actually be sent.

If HTTPShouldSetCookies is set to false in the session's config then
any cookies set will not be sent as part of the request. Previously the cURL command output
would include cookies whether or not HTTPShouldSetCookies was true or
not. This commit will only print cookies in the cURL output if they'll
actually be sent.
@cnoon
Copy link
Member

cnoon commented Jun 12, 2015

Thank you for your PR @alexpls. I accepted your change with slight modifications in c40d790.

@cnoon cnoon closed this Jun 12, 2015
@cnoon cnoon added the bug label Jun 12, 2015
@cnoon cnoon added this to the 1.2.3 milestone Jun 12, 2015
@cnoon cnoon self-assigned this Jun 12, 2015
@alexpls
Copy link
Contributor Author

alexpls commented Jun 12, 2015

Great! Thanks @cnoon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants