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

Adding support for media range parameters #1259

Merged
merged 1 commit into from Oct 10, 2013

Conversation

Projects
None yet
2 participants
@liddellj
Contributor

liddellj commented Oct 10, 2013

Fix for #1211.

  • Added a new class called MediaParameters which implements IEnumerable<KeyValuePair<string, string>>
  • Added a Parameters property to MediaRange, of the above type.
  • Altered MediaRange.FromString to parse the parameters into the new property.
  • Added MediaRange.MatchesWithParameters to take parameters into account (if parameters exist, they must exist in both, but ordering doesn't matter).
  • Modify RequestHeaders.GetWeightedValues so that media range parameters are not stripped.

grumpydev added a commit that referenced this pull request Oct 10, 2013

Merge pull request #1259 from liddellj/mediarange-params
Adding support for media range parameters

@grumpydev grumpydev merged commit 9d2b9fb into NancyFx:master Oct 10, 2013

1 check passed

default The Travis CI build passed
Details

@liddellj liddellj deleted the liddellj:mediarange-params branch Oct 10, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment