nim-chronos/chronos/apps/http
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
..
httpagent.nim Httpclient (#182) 2021-05-10 10:26:36 +03:00
httpbodyrw.nim No more Defect on stream close. (#213) 2021-08-06 13:13:55 +03:00
httpclient.nim enable --styleCheck:usages 2021-12-27 17:33:25 +02:00
httpcommon.nim enable --styleCheck:usages 2021-12-27 17:33:25 +02:00
httpserver.nim Refactor `preferredContentType` proc & add tests 2022-01-25 16:05:36 +02:00
httptable.nim enable --styleCheck:usages 2021-12-27 17:33:25 +02:00
multipart.nim enable --styleCheck:usages 2021-12-27 17:33:25 +02:00
shttpserver.nim enable --styleCheck:usages 2021-12-27 17:33:25 +02:00