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

Commit

Permalink
The checking on 304 should be on res.
Browse files Browse the repository at this point in the history
  • Loading branch information
linjunpop authored Mar 22, 2022
1 parent 301fe79 commit 4264974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ Client.prototype._pollConfig = function () {

this._scheduleNextConfigPoll(getMaxAge(res))

if (req.statusCode === 304) {
if (res.statusCode === 304) {
this._log.debug('[_pollConfig] statusCode: 304, message: No new config since last time')
res.resume()
return
Expand Down

0 comments on commit 4264974

Please sign in to comment.