ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

Feature/fix parse accept header #67

Closed Deraen closed 7 years ago

Deraen commented 7 years ago

Fixes #66

preferred-encoder shouldn't use (:content-type req) (deprecated Ring request property) if Accept header is not present.

But parse-accept-header shouldn't throw exceptions if invalid value is found.

This change adds new tests which previously didn't work and reworks parse-accept-header.