Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

fixes #209 - replaced accept-whitelist and content-type-whitelist #212

Closed
wants to merge 1 commit into from
Closed

Conversation

vik-singh
Copy link

fixes #209 - replaced accept-whitelist and content-type-whitelist with their underscored counterparts since the service now does not ignore invalid keys in config

…h their underscored counterparts since the service now does not ignore invalid keys in config
@TomHAnderson
Copy link
Contributor

I was going to merge this but I need you to PR from a branch other than master; and which has been rebased from master. Additionally this PR has failed Travis.

weierophinney added a commit to weierophinney/zf-content-negotiation that referenced this pull request Jul 16, 2015
Per a number of reports, some modules were using dash-separated keys instead of
underscore_separated keys for content-negotiation options.
zf-content-negotiation was ignoring these previously, but starting with 1.2.0
and the introduction of the ContentNegotiationOptions class, these are now
invalid and raise an exception, breaking applications.

The specific module in question is likely zf-apigility-doctrine, and there's a
PR against that repo to fix it: zfcampus/zf-apigility-doctrine#212.

This patch modifies the options class to munge dash-separated values to ensure
they work.
weierophinney added a commit to weierophinney/zf-content-negotiation that referenced this pull request Jul 16, 2015
Per a number of reports, some modules were using dash-separated keys instead of
underscore_separated keys for content-negotiation options.
zf-content-negotiation was ignoring these previously, but starting with 1.2.0
and the introduction of the ContentNegotiationOptions class, these are now
invalid and raise an exception, breaking applications.

The specific module in question is likely zf-apigility-doctrine, and there's a
PR against that repo to fix it: zfcampus/zf-apigility-doctrine#212.

This patch modifies the options class to munge dash-separated values to ensure
they work.
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.

accept-whitelist instead of accept_whitelist in config is causing error
2 participants