mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-18 23:31:13 +00:00
1f37dac810
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.