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

Accept vendor-specific protocol buffer Accept headers. #6

Merged
merged 2 commits into from Jun 30, 2015
Merged

Accept vendor-specific protocol buffer Accept headers. #6

merged 2 commits into from Jun 30, 2015

Conversation

otherdave
Copy link
Contributor

If the request contained an Accepts header of the form: application/vnd.SOMETHING+x-protobuf, the framework wouldn't recognize it. This broke bind() calls among others.

I lifted the idea for this implementation from another Nancy serializer, but I can't remember where (sorry, I hacked this internally for a project a while ago and I'm just now getting around to sending my patch upstream).

I've also added a few unit tests to verify this behavior. Let me know if I need to tweak this to make the patch acceptable.

grumpydev added a commit that referenced this pull request Jun 30, 2015
Accept vendor-specific protocol buffer Accept headers.
@grumpydev grumpydev merged commit 4d61dd7 into NancyFx:master Jun 30, 2015
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.

None yet

2 participants