Adding support for media range parameters #1259

merged 1 commit into from Oct 10, 2013


None yet

2 participants


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 grumpydev merged commit 9d2b9fb into NancyFx:master Oct 10, 2013

1 check passed

default The Travis CI build passed
@liddellj liddellj deleted the unknown repository branch Oct 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment