Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 7d5d86e

Browse files
no assignment..
1 parent ed04525 commit 7d5d86e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function onRes (buffer, cb) {
1616

1717
const stream = !!res.headers['x-stream-output']
1818
const chunkedObjects = !!res.headers['x-chunked-output']
19-
const isJson = res.headers['content-type'] = 'application/json'
19+
const isJson = res.headers['content-type'] === 'application/json'
2020

2121
if (res.statusCode >= 400 || !res.statusCode) {
2222
const error = new Error(`Server responded with ${res.statusCode}`)

0 commit comments

Comments
 (0)