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
..
2022-01-04 23:14:30 +01:00
2021-12-27 17:33:25 +02:00
2021-03-24 10:08:33 +01:00
2021-12-10 11:19:14 +01:00
2022-01-04 23:14:30 +01:00
2021-12-10 11:19:14 +01:00
2021-11-20 01:30:23 +01:00
2022-01-04 18:00:17 +01:00
2022-01-04 18:00:17 +01:00
2021-09-15 16:55:15 +03:00
2021-03-24 10:08:33 +01:00
2021-03-24 10:08:33 +01:00