on master help sign in
Don't render header via String
commit358f7691e5638d4f0de3a9472422a38a78614234 authorJulian K. Arni <jkarni@gmail.com> dateThu 4 Jun 2015, 14:28 (11 years ago) parent2725e20
1 file changed+1−1
servant/src/Servant/API/ContentTypes.hs+1−1
servant/src/Servant/API/ContentTypes.hs+1−1
@@ -166,7 +166,7 @@ instance ( AllMimeRender ctyps a, IsNonEmpty ctyps
166166 handleAcceptH _ (AcceptHeader accept) val = M.mapAcceptMedia lkup accept
167167 where pctyps = Proxy :: Proxy ctyps
168168 amrs = allMimeRender pctyps val
169− lkup = fmap (\(a,b) -> (a, (cs $ show a, b))) amrs
169+ lkup = fmap (\(a,b) -> (a, (fromStrict $ M.renderHeader a, b))) amrs
170170
171171
172172--------------------------------------------------------------------------