Skip to content

Omit binary body in FullHttpMessageFormatter #128

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

Merged

Conversation

ostrolucky
Copy link
Contributor

@ostrolucky ostrolucky commented May 13, 2020

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Related tickets fixes #126
Documentation -
License MIT

What's in this PR?

Makes handling for binary body similar to what CurlCommandFormatter does. I was initially playing with idea to use bin2hex, but then I realized people who actually want binary bodies logged will be minority, for majority this is something they are logging unintended by oversight.

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

Goes in line with CurlCommandFormatter.
Makes this formatter safer to use
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@dbu dbu merged commit 226ba9f into php-http:master May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FullHttpMessageFormatter should be smarter about formatting binary request/response bodies
2 participants