Skip to content

Commit 3449673

Browse files
committed
The response message of a request is changed from a string to an object.
1 parent 69bc3d6 commit 3449673

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Request {
5454
})
5555

5656
res.on('end', () => {
57+
responseData = JSON.parse(responseData)
5758
resolve(responseData)
5859
})
5960
})

0 commit comments

Comments
 (0)