Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 6e862e9

Browse files
committed
The checking on 304 should be on res.
1 parent fa01e70 commit 6e862e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ Client.prototype._pollConfig = function () {
389389

390390
this._scheduleNextConfigPoll(getMaxAge(res))
391391

392-
if (req.statusCode === 304) {
392+
if (res.statusCode === 304) {
393393
this._log.debug('[_pollConfig] statusCode: 304, message: No new config since last time')
394394
res.resume()
395395
return

0 commit comments

Comments
 (0)