Emil 1f37dac810 Refactor preferredContentType proc & add tests
Fix of the following bug:
In case of multiple accept headers with same preference
`preferredContentType` used to select the first match within content types
provided by the application. For example, if user specifies accept headers
`application/octet-stream, application/json` and application provides
`application/json, application/octet-stream`, `application/octet-stream`
will be returned, and that is a bug.

Now the procedure returns the most suitable match according
to the application preferences.
2022-01-25 16:05:36 +02:00
..
2021-05-10 10:26:36 +03:00
2021-12-27 17:33:25 +02:00
2021-12-27 17:33:25 +02:00
2021-12-27 17:33:25 +02:00
2021-12-27 17:33:25 +02:00
2021-12-27 17:33:25 +02:00