Closed cblegare closed 10 years ago
I'll be glad to fix these if you agree with the general idea !
I do agree with the idea. Regarding the changes made in the test suite, it is acceptable.
Sorry about the tests. This version implied some serious refactor, but nothing really breaking compatibility, as long as user had not overloaded Negotiation\Negotiator::matchPriorities()
yet...
Sorry about the tests
? I wrote "it IS acceptable", so it is really great!
I meant I'm sorry I had to change existing tests ;)
In case you hadn't noticed yet, I corrected what you pointed out earlier.
Merged, thank you!
This is a implementation proposal for issue #21.
That is, best header is based on priority value instead of header value.
For instance, in case of language negotiation:
Before this PR, the resulting value would have been
en
.