File tree 1 file changed +2
-2
lines changed
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
43
43
responseTypeToString ArrayBufferResponse = " arraybuffer"
44
44
responseTypeToString BlobResponse = " blob"
45
45
responseTypeToString DocumentResponse = " document"
46
- responseTypeToString JSONResponse = " json"
46
+ responseTypeToString JSONResponse = " text " -- IE doesn't support " json" responseType
47
47
responseTypeToString StringResponse = " text"
48
48
49
49
-- | Type representing content types that be received from an XHR request
@@ -64,7 +64,7 @@ instance responsableDocument :: Respondable Document where
64
64
65
65
instance responsableJSON :: Respondable Foreign where
66
66
responseType = JSONResponse
67
- fromResponse = Right
67
+ fromResponse = readString >=> parseJSON
68
68
69
69
instance responsableString :: Respondable String where
70
70
responseType = StringResponse
You can’t perform that action at this time.
0 commit comments