Skip to content

Commit c4b2023

Browse files
committed
Add Line break
1 parent 829ace9 commit c4b2023

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UPGRADING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The following used to yield `application/xml` and now will yield `application/js
1818
- `application/json,application/xml;q=1.0`
1919

2020
For the invalid case, the value `invalid` was automatically `to_f` and `invalid.to_f` equals `0.0`. Now, since it doesn't match [Rack's regex](https://github.com/rack/rack/blob/3-1-stable/lib/rack/utils.rb#L138), its interpreted as non provided and its quality ranking equals 1.0.
21+
2122
For the non provided case, 1.0 was automatically assigned and in a case of multiple best matches, the first was returned based on Ruby's sort_by `quality`. Now, 1.0 is still assigned, the last is returned in case of multiple best matches. See [Rack's implementation](https://github.com/rack/rack/blob/e8f47608668d507e0f231a932fa37c9ca551c0a5/lib/rack/utils.rb#L167) of the RFC.
2223

2324
###### Considering the closest generic when vendor tree

0 commit comments

Comments
 (0)