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

Allow dash-separated keys #48

Merged
merged 1 commit into from
Jul 16, 2015

Conversation

weierophinney
Copy link
Member

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.

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 weierophinney added this to the 1.1.1 milestone Jul 16, 2015
@weierophinney weierophinney self-assigned this Jul 16, 2015
weierophinney added a commit that referenced this pull request Jul 16, 2015
@weierophinney weierophinney merged commit 127789f into zfcampus:master Jul 16, 2015
weierophinney added a commit that referenced this pull request Jul 16, 2015
@weierophinney weierophinney deleted the hotfix/dash-options branch July 16, 2015 14:11
@weierophinney
Copy link
Member Author

Applied and tagged in both 1.0.9 and 1.1.1

@TomHAnderson
Copy link
Contributor

zf-apigility-doctrine PR for this fix is zfcampus/zf-apigility-doctrine#213

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

Successfully merging this pull request may close these issues.

2 participants