Skip to content

Commit

Permalink
Merge pull request #71 from nimbus154/master
Browse files Browse the repository at this point in the history
Fix global scope leak
  • Loading branch information
tomas committed Aug 11, 2014
2 parents b39df49 + dec259f commit 3afdc85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/needle.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var Needle = {
send_request: function(count, method, uri, config, post_data, out, callback) {

var timer,
returned = 0
returned = 0,
self = this,
request_opts = this.get_request_opts(method, uri, config),
protocol = request_opts.protocol == 'https:' ? https : http;
Expand Down Expand Up @@ -330,7 +330,7 @@ var Needle = {

// if we're here and parsed is true, it means we tried to but it didn't work.
// so given that we got a text response, let's stringify it.
if (text_response || parsed) {
if (text_response || parsed) {
resp.body = resp.body.toString();
}
}
Expand Down

0 comments on commit 3afdc85

Please sign in to comment.