Skip to content
This repository was 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 committed Oct 18, 2022
1 parent fa01e70 commit 6e862e9
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 6e862e9

Please sign in to comment.