RoutingApplication.hs was pulling request headers from the raw snap request and adding them to the Request used by servant for routing. These headers were already being imported by snapToApplication, so we were adding them twice. Duplicate Content-Type: application/json headers apparently can not be parsed unless they include the ;charset=utf-8 suffix.
Fixes #27
RoutingApplication.hs
was pulling request headers from the raw snap request and adding them to theRequest
used by servant for routing. These headers were already being imported bysnapToApplication
, so we were adding them twice. DuplicateContent-Type: application/json
headers apparently can not be parsed unless they include the;charset=utf-8
suffix.