@@ -115,21 +115,21 @@ spec = describe "Servant.API.ContentTypes" $ do
115115
116116 it "returns the Content-Type as the first element of the tuple" $ do
117117 handleAcceptH (Proxy :: Proxy '[JSON]) "*/*" (3 :: Int)
118− `shouldSatisfy` ((== "application/json") . fst . fromJust)
118+ `shouldSatisfy` ((== "application/json;charset=utf-8") . fst . fromJust)
119119 handleAcceptH (Proxy :: Proxy '[PlainText, JSON]) "application/json" (3 :: Int)
120− `shouldSatisfy` ((== "application/json") . fst . fromJust)
120+ `shouldSatisfy` ((== "application/json;charset=utf-8") . fst . fromJust)
121121 handleAcceptH (Proxy :: Proxy '[PlainText, JSON, OctetStream])
122122 "application/octet-stream" ("content" :: ByteString)
123123 `shouldSatisfy` ((== "application/octet-stream") . fst . fromJust)
124124
125125 it "returns the appropriately serialized representation" $ do
126126 property $ \x -> handleAcceptH (Proxy :: Proxy '[JSON]) "*/*" (x :: SomeData)
127− == Just ("application/json", encode x)
127+ == Just ("application/json;charset=utf-8", encode x)
128128
129129 it "respects the Accept spec ordering" $ do
130130 let highest a b c = maximumBy (compare `on` snd)
131131 [ ("application/octet-stream", a)
132− , ("application/json", b)
132+ , ("application/json;charset=utf-8", b)
133133 , ("text/plain;charset=utf-8", c)
134134 ]
135135 let acceptH a b c = addToAccept (Proxy :: Proxy OctetStream) a $