Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Servant/Client/Internal/JSaddleXhrClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ toResponse domc xhr = do
_ -> inDom $ do
statusText <- BS.pack <$> JS.getStatusText xhr
headers <- parseHeaders <$> JS.getAllResponseHeaders xhr
responseText <- maybe "" (L.fromStrict . BS.pack) <$> JS.getResponseText xhr -- FIXME: Text/Binary? Performance? Test?
responseText <- maybe "" (L.fromStrict . T.encodeUtf8) <$> JS.getResponseText xhr
pure Response
{ responseStatusCode = mkStatus (fromIntegral status) statusText
, responseBody = responseText
Expand Down