File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ responseTypeToString :: forall a. (ResponseType a) -> String
4343responseTypeToString ArrayBufferResponse = " arraybuffer"
4444responseTypeToString BlobResponse = " blob"
4545responseTypeToString DocumentResponse = " document"
46- responseTypeToString JSONResponse = " json"
46+ responseTypeToString JSONResponse = " text " -- IE doesn't support " json" responseType
4747responseTypeToString StringResponse = " text"
4848
4949-- | Type representing content types that be received from an XHR request
@@ -64,7 +64,7 @@ instance responsableDocument :: Respondable Document where
6464
6565instance responsableJSON :: Respondable Foreign where
6666 responseType = JSONResponse
67- fromResponse = Right
67+ fromResponse = readString >=> parseJSON
6868
6969instance responsableString :: Respondable String where
7070 responseType = StringResponse
You can’t perform that action at this time.
0 commit comments