Skip to content

Commit 1f848ac

Browse files
committed
Update to prevent status code 200 messages from being flagged as errors.
1 parent c7faff5 commit 1f848ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transporters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ DefaultTransporter.prototype.wrapCallback_ = function(opt_callback) {
7373
body = JSON.parse(body);
7474
} catch (err) { /* no op */ }
7575

76-
if (body && body.error && res.statusCode != 200) {
76+
if (body && body.error && res.statusCode !== 200) {
7777
if (typeof body.error === 'string') {
7878
err = new Error(body.error);
7979
err.code = res.statusCode;

0 commit comments

Comments
 (0)