Browse Source

Merge pull request #11 from fjakobs/patch-1

prevent leaking "error" to global scope
pull/13/head
Brett Langdon 11 years ago
parent
commit
3a4d67ba60
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/http_client.js

+ 1
- 1
lib/http_client.js View File

@ -115,7 +115,7 @@ client.prototype.request = function(method, path, params, callback){
});
res.on('end', function(){
error = null;
var error = null;
try{ data = JSON.parse(data); }catch(e){}
if(data['errors']){
error = data['errors'];


Loading…
Cancel
Save