Skip to content

Commit

Permalink
fix(agent): fix bug in observe option check
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 19, 2022
1 parent 67c12da commit 8193773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class Agent extends EventEmitter {
req.setOption('Observe', url.observe)
} else if (typeof (url.observe) === 'string') {
req.setOption('Observe', parseInt(url.observe))
} else if (url.observe === true || url.observe != null) {
} else if (url.observe === true) {
req.setOption('Observe', 0)
} else {
req.on('response', this._cleanUp.bind(this))
Expand Down

0 comments on commit 8193773

Please sign in to comment.