Skip to content

Remove header if there is no more encoding value #107

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
merged 1 commit into from
Jun 22, 2018

Conversation

joelwurtz
Copy link
Member

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

What's in this PR?

Decoder will now remove the header instead of setting it to an empty array

Why?

It fixes compatibility of this plugin with https://github.com/Nyholm/psr7 (and so certainly the PSR7 standard), as it throws an exception when setting a header with an empty array, cf this line : https://github.com/Nyholm/psr7/blob/master/src/MessageTrait.php#L80

@joelwurtz joelwurtz force-pushed the fix/remove-header-if-empty branch from ff3505a to d65deb5 Compare June 22, 2018 09:00
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.

Makes sense to me

@dbu dbu merged commit f6901d0 into master Jun 22, 2018
@dbu dbu deleted the fix/remove-header-if-empty branch June 22, 2018 12:31
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.

2 participants