Browse Source

prevent leaking "error" to global scope

pull/11/head
Fabian Jakobs 11 years ago
parent
commit
ce8f310afd
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