Skip to content

Commit

Permalink
Merge pull request #430 from oliverlockwood/429-fix-accidental-global…
Browse files Browse the repository at this point in the history
…-signal-creation

#429: fix accidental creation of 'signal' global variable
  • Loading branch information
tomas authored Dec 11, 2023
2 parents 5e47a6c + fdd6d73 commit 6b14ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/needle.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Needle.prototype.send_request = function(count, method, uri, config, post_data,
returned = 0,
self = this,
request_opts = this.get_request_opts(method, uri, config),
protocol = request_opts.protocol == 'https:' ? https : http;
protocol = request_opts.protocol == 'https:' ? https : http,
signal = request_opts.signal;

function done(err, resp) {
Expand Down

0 comments on commit 6b14ce4

Please sign in to comment.