Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Adding support for media range parameters #1259

Merged
merged 1 commit into from
Oct 10, 2013
Merged

Adding support for media range parameters #1259

merged 1 commit into from
Oct 10, 2013

Conversation

liddellj
Copy link
Contributor

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
Adding support for media range parameters
@grumpydev grumpydev merged commit 9d2b9fb into NancyFx:master Oct 10, 2013
@liddellj liddellj deleted the mediarange-params branch October 10, 2013 11:48
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.

2 participants